Class PseudoClassConditionImpl

  • All Implemented Interfaces:
    org.w3c.css.sac.AttributeCondition, org.w3c.css.sac.Condition

    public class PseudoClassConditionImpl
    extends java.lang.Object
    implements org.w3c.css.sac.AttributeCondition
    Version:
    $Revision: 6653 $
    Author:
    Philippe Le Hegaret
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String value  
      • Fields inherited from interface org.w3c.css.sac.Condition

        SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
    • Constructor Summary

      Constructors 
      Constructor Description
      PseudoClassConditionImpl​(java.lang.String value)
      Creates a new AttributeConditionImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getConditionType()
      An integer indicating the type of Condition.
      java.lang.String getLocalName()
      Returns the local part of the qualified name of this attribute.
      java.lang.String getNamespaceURI()
      Returns the namespace URI of this attribute condition.
      boolean getSpecified()
      Returns true if the attribute must have an explicit value in the original document, false otherwise.
      java.lang.String getValue()
      Returns the value of the attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        java.lang.String value
    • Constructor Detail

      • PseudoClassConditionImpl

        public PseudoClassConditionImpl​(java.lang.String value)
        Creates a new AttributeConditionImpl
    • Method Detail

      • getConditionType

        public short getConditionType()
        An integer indicating the type of Condition.
        Specified by:
        getConditionType in interface org.w3c.css.sac.Condition
      • getNamespaceURI

        public java.lang.String getNamespaceURI()
        Returns the namespace URI of this attribute condition.

        NULL if :

        • this attribute condition can match any namespace.
        • this attribute is an id attribute.
        Specified by:
        getNamespaceURI in interface org.w3c.css.sac.AttributeCondition
      • getLocalName

        public java.lang.String getLocalName()
        Returns the local part of the qualified name of this attribute.

        NULL if :

        • this attribute condition can match any attribute.

        • this attribute is a class attribute.

        • this attribute is an id attribute.

        • this attribute is a pseudo-class attribute.

        Specified by:
        getLocalName in interface org.w3c.css.sac.AttributeCondition
      • getSpecified

        public boolean getSpecified()
        Returns true if the attribute must have an explicit value in the original document, false otherwise.
        Specified by:
        getSpecified in interface org.w3c.css.sac.AttributeCondition
      • getValue

        public java.lang.String getValue()
        Returns the value of the attribute. If this attribute is a class or a pseudo class attribute, you'll get the class name (or psedo class name) without the '.' or ':'.
        Specified by:
        getValue in interface org.w3c.css.sac.AttributeCondition