org.apache.batik.css.engine.sac

Class CSSElementSelector

public class CSSElementSelector extends AbstractElementSelector

This class implements the org.w3c.css.sac.ElementSelector interface.
Constructor Summary
CSSElementSelector(String uri, String name)
Creates a new ElementSelector object.
Method Summary
shortgetSelectorType()
SAC: Implements org.w3c.css.sac.Selector#getSelectorType().
intgetSpecificity()
Returns the specificity of this selector.
booleanmatch(Element e, String pseudoE)
Tests whether this selector matches the given element.
StringtoString()
Returns a representation of the selector.

Constructor Detail

CSSElementSelector

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

Method Detail

getSelectorType

public short getSelectorType()
SAC: Implements org.w3c.css.sac.Selector#getSelectorType().

getSpecificity

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

match

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

toString

public String toString()
Returns a representation of the selector.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.