KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > css > sac > AttributeCondition


1 /*
2  * Copyright (c) 1999 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE.
10  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11  *
12  * $Id: AttributeCondition.java,v 1.1.1.1 2003/12/28 21:23:44 davidsch Exp $
13  */

14 package org.w3c.css.sac;
15
16 /**
17  * @version $Revision: 1.1.1.1 $
18  * @author Philippe Le Hegaret
19  * @see Condition#SAC_ATTRIBUTE_CONDITION
20  * @see Condition#SAC_ONE_OF_ATTRIBUTE_CONDITION
21  * @see Condition#SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION
22  * @see Condition#SAC_ID_CONDITION
23  * @see Condition#SAC_CLASS_CONDITION
24  * @see Condition#SAC_PSEUDO_CLASS_CONDITION
25  */

26 public interface AttributeCondition extends Condition {
27     
28     /**
29      * Returns the
30      * <a HREF="http://www.w3.org/TR/REC-xml-names/#dt-NSName">namespace
31      * URI</a> of this attribute condition.
32      * <p><code>NULL</code> if :
33      * <ul>
34      * <li>this attribute condition can match any namespace.
35      * <li>this attribute is an id attribute.
36      * </ul>
37      */

38     public String JavaDoc getNamespaceURI();
39
40     /**
41      * Returns the
42      * <a HREF="http://www.w3.org/TR/REC-xml-names/#NT-LocalPart">local part</a>
43      * of the
44      * <a HREF="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">qualified
45      * name</a> of this attribute.
46      * <p><code>NULL</code> if :
47      * <ul>
48      * <li><p>this attribute condition can match any attribute.
49      * <li><p>this attribute is a class attribute.
50      * <li><p>this attribute is an id attribute.
51      * <li><p>this attribute is a pseudo-class attribute.
52      * </ul>
53      */

54     public String JavaDoc getLocalName();
55
56     /**
57      * Returns <code>true</code> if the attribute must have an explicit value
58      * in the original document, <code>false</code> otherwise. If this is a
59      * pseudo class, the return value is unspecified.
60      * <p><code>false</code> if:
61      * <ul>
62      * <li>if this is an id attribute.
63      * <li>if this is a pseudo class a class attribute.
64      * </ul>
65      */

66     public boolean getSpecified();
67
68     /**
69      * Returns the value of the attribute.
70      * If this attribute is a class or a pseudo class attribute, you'll get
71      * the class name (or psedo class name) without the '.' or ':'.
72      */

73     public String JavaDoc getValue();
74 }
75
Popular Tags