Class AttributeCondition

java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.parser.condition.AttributeCondition
All Implemented Interfaces:
Serializable, Condition, Locatable
Direct Known Subclasses:
BeginHyphenAttributeCondition, OneOfAttributeCondition, PrefixAttributeCondition, SubstringAttributeCondition, SuffixAttributeCondition

public class AttributeCondition extends AbstractLocatable implements Condition, Serializable
Author:
Ronald Brill
See Also:
  • Constructor Details

    • AttributeCondition

      public AttributeCondition(String localName, String value, Boolean caseInSensitive)
      Ctor.
      Parameters:
      localName - the local value
      value - the value
      caseInSensitive - null if not set, true/false for i/s
  • Method Details

    • getConditionType

      public Condition.ConditionType getConditionType()
      Description copied from interface: Condition

      getConditionType.

      Specified by:
      getConditionType in interface Condition
      Returns:
      the associated condition type
    • getLocalName

      public String getLocalName()

      getLocalName.

      Specified by:
      getLocalName in interface Condition
      Returns:
      the local name
    • getValue

      public String getValue()

      getValue.

      Specified by:
      getValue in interface Condition
      Returns:
      the value
    • isCaseInSensitive

      public boolean isCaseInSensitive()
      Returns:
      true if the caseInsensitive option was set
    • getOperator

      public String getOperator()
    • toString

      public String toString()
      Overrides:
      toString in class Object