Interface AttributeCondition

All Superinterfaces:
Condition

public interface AttributeCondition extends Condition
Based on SAC's AttributeCondition interface by Philippe Le Hegaret.
  • Method Details

    • getLocalName

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

      If this condition represents a pseudo-class, it returns the pseudo-class name.

      Returns:
      the local name of the attribute specified by this condition, or null if :
      • this attribute condition can match any attribute.

      • this attribute is a class attribute.

      • this attribute is an id attribute.

    • getNamespaceURI

      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.
    • getValue

      String getValue()
      If this attribute is a class attribute, you'll get the class name without the '.'.

      If this condition represents a pseudo-class with an argument (in parentheses), it returns the argument.

      Returns:
      the value of the attribute (or the pseudo-class argument).
    • hasFlag

      boolean hasFlag(AttributeCondition.Flag flag)
      Test this selector for the given flag.
      Parameters:
      flag - the flag to test.
      Returns:
      true if the supplied flag was set for this condition.