Class ElementSelector

All Implemented Interfaces:
Serializable, Locatable, Selector, SimpleSelector

public class ElementSelector extends AbstractSelector implements SimpleSelector
See Also:
  • Field Details

    • localName_

      private final String localName_
    • localNameLC_

      private final String localNameLC_
    • conditions_

      private List<Condition> conditions_
  • Constructor Details

    • ElementSelector

      public ElementSelector(String localName, Locator locator)
      Ctor.
      Parameters:
      localName - the local name
      locator - the locator
  • Method Details

    • getSelectorType

      public Selector.SelectorType getSelectorType()
      Specified by:
      getSelectorType in interface Selector
      Returns:
      the associated selector type
    • getSimpleSelector

      public SimpleSelector getSimpleSelector()
      Specified by:
      getSimpleSelector in interface Selector
      Returns:
      the simple selector part
    • getLocalName

      public String getLocalName()
      Returns:
      the local name
    • getLocalNameLowerCase

      public String getLocalNameLowerCase()
      Returns:
      the local name in lowercase
    • getElementName

      public String getElementName()
      Returns:
      the element name
    • getConditions

      public List<Condition> getConditions()
      Returns:
      the conditions
    • addCondition

      public void addCondition(Condition condition)
      Add a condition.
      Parameters:
      condition - the condition to be added
    • toString

      public String toString()
      Overrides:
      toString in class Object