Class PseudoClassConditionImpl

java.lang.Object
com.steadystate.css.parser.selectors.PseudoClassConditionImpl
All Implemented Interfaces:
Serializable, AttributeCondition, Condition

public class PseudoClassConditionImpl extends Object implements AttributeCondition, Serializable
See Also:
  • Constructor Details

    • PseudoClassConditionImpl

      public PseudoClassConditionImpl(String value)
  • Method Details

    • getConditionType

      public short getConditionType()
      Description copied from interface: Condition
      An integer indicating the type of Condition.
      Specified by:
      getConditionType in interface Condition
    • getNamespaceURI

      public String getNamespaceURI()
      Description copied from interface: AttributeCondition
      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 AttributeCondition
    • getLocalName

      public String getLocalName()
      Description copied from interface: AttributeCondition
      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 AttributeCondition
    • getSpecified

      public boolean getSpecified()
      Description copied from interface: AttributeCondition
      Returns true if the attribute must have an explicit value in the original document, false otherwise. If this is a pseudo class, the return value is unspecified.

      false if:

      • if this is an id attribute.
      • if this is a pseudo class a class attribute.
      Specified by:
      getSpecified in interface AttributeCondition
    • getValue

      public String getValue()
      Description copied from interface: AttributeCondition
      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 AttributeCondition
    • toString

      public String toString()
      Overrides:
      toString in class Object