java.lang.Object
com.steadystate.css.parser.selectors.ElementSelectorImpl
- All Implemented Interfaces:
- org.w3c.css.sac.ElementSelector, org.w3c.css.sac.Selector, java.io.Serializable, org.w3c.css.sac.SimpleSelector
- public class ElementSelectorImpl
- extends java.lang.Object
- implements org.w3c.css.sac.ElementSelector, java.io.Serializable
| Fields inherited from interface org.w3c.css.sac.Selector |
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR |
_localName
private java.lang.String _localName
ElementSelectorImpl
public ElementSelectorImpl(java.lang.String localName)
getSelectorType
public short getSelectorType()
- Description copied from interface:
org.w3c.css.sac.Selector
- An integer indicating the type of
Selector
- Specified by:
getSelectorType in interface org.w3c.css.sac.Selector
getNamespaceURI
public java.lang.String getNamespaceURI()
- Description copied from interface:
org.w3c.css.sac.ElementSelector
- Returns the
namespace
URI of this element selector.
NULL if this element selector can match any namespace.
- Specified by:
getNamespaceURI in interface org.w3c.css.sac.ElementSelector
getLocalName
public java.lang.String getLocalName()
- Description copied from interface:
org.w3c.css.sac.ElementSelector
- Returns the
local part
of the
qualified
name of this element.
NULL if this element selector can match any element.
- Specified by:
getLocalName in interface org.w3c.css.sac.ElementSelector
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).