org.apache.batik.css.engine.sac

Class CSSElementSelector

public class CSSElementSelector extends AbstractElementSelector

This class implements the {@link org.w3c.css.sac.ElementSelector} interface.
Constructor Summary
CSSElementSelector(String uri, String name)
Creates a new ElementSelector object.
Method Summary
shortgetSelectorType()
SAC: Implements {@link 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 {@link 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) 2007 Apache Software Foundation. All Rights Reserved.