Class CSSElementSelector

java.lang.Object
org.apache.batik.css.engine.sac.AbstractElementSelector
org.apache.batik.css.engine.sac.CSSElementSelector
All Implemented Interfaces:
ExtendedSelector, org.w3c.css.sac.ElementSelector, org.w3c.css.sac.Selector, org.w3c.css.sac.SimpleSelector

public class CSSElementSelector extends AbstractElementSelector
This class implements the ElementSelector interface.
Version:
$Id: CSSElementSelector.java 1733416 2016-03-03 07:07:13Z gadams $
  • Constructor Details

    • CSSElementSelector

      public CSSElementSelector(String uri, String name)
      Creates a new ElementSelector object.
  • Method Details

    • getSelectorType

      public short getSelectorType()
      SAC: Implements Selector.getSelectorType().
    • match

      public boolean match(Element e, String pseudoE)
      Tests whether this selector matches the given element.
    • getSpecificity

      public int getSpecificity()
      Returns the specificity of this selector.
    • toString

      public String toString()
      Returns a representation of the selector.
      Overrides:
      toString in class Object