Home » xml-commons-external-1.4.01-src » org.w3c.css.sac » [javadoc | source]

    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 477010 2006-11-20 02:54:38Z mrglavas $
   13    */
   14   package org.w3c.css.sac;
   15   
   16   /**
   17    * @version $Revision: 477010 $
   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 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 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.
   59        */
   60       public boolean getSpecified();
   61   
   62       /**
   63        * Returns the value of the attribute.
   64        * If this attribute is a class or a pseudo class attribute, you'll get
   65        * the class name (or psedo class name) without the '.' or ':'.
   66        */
   67       public String getValue();
   68   }

Home » xml-commons-external-1.4.01-src » org.w3c.css.sac » [javadoc | source]