Class ElementSelector

All Implemented Interfaces:
Serializable, Locatable, Selector, SimpleSelector

public class ElementSelector extends AbstractSelector implements SimpleSelector

ElementSelector class.

Author:
Ronald Brill
See Also:
  • 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()

      getSelectorType.

      Specified by:
      getSelectorType in interface Selector
      Returns:
      the associated selector type
    • getSimpleSelector

      public SimpleSelector getSimpleSelector()

      getSimpleSelector.

      Specified by:
      getSimpleSelector in interface Selector
      Returns:
      the simple selector part
    • getLocalName

      public String getLocalName()

      getLocalName.

      Returns:
      the local name
    • getLocalNameLowerCase

      public String getLocalNameLowerCase()

      getLocalNameLowerCase.

      Returns:
      the local name in lowercase
    • getElementName

      public String getElementName()

      getElementName.

      Returns:
      the element name
    • getConditions

      public List<Condition> getConditions()

      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