public class DefaultNameStep extends DefaultStep implements NameStep
This includes simple steps, such as "foo", non-default-axis steps, such as "following-sibling::foo" or "@foo", and namespace-aware steps, such as "foo:bar".
Modifier and Type | Field and Description |
---|---|
private boolean |
hasPrefix
Deprecated.
Quick flag denoting if we have a namespace prefix
|
private java.lang.String |
localName
Deprecated.
Our local-name.
|
private boolean |
matchesAnyName
Deprecated.
Quick flag denoting if the local name was '*'
|
private java.lang.String |
prefix
Deprecated.
Our prefix, bound through the current Context.
|
private static long |
serialVersionUID
Deprecated.
|
Constructor and Description |
---|
DefaultNameStep(IterableAxis axis,
java.lang.String prefix,
java.lang.String localName,
PredicateSet predicateSet)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
evaluate(Context context)
Deprecated.
Evaluate the context node set to find the new node set.
|
java.lang.String |
getLocalName()
Deprecated.
Gets the local name.
|
java.lang.String |
getPrefix()
Deprecated.
Gets the namespace prefix.
|
java.lang.String |
getText()
Deprecated.
Gets the step as a fully defined XPath.
|
private boolean |
hasNamespace(java.lang.String uri)
Deprecated.
Checks whether the URI represents a namespace.
|
boolean |
isMatchesAnyName()
Deprecated.
Does this step match any name? (i.e.
|
boolean |
matches(java.lang.Object node,
ContextSupport contextSupport)
Deprecated.
Checks whether the node matches this step.
|
protected boolean |
matchesNamespaceURIs(java.lang.String uri1,
java.lang.String uri2)
Deprecated.
Compares two namespace URIs, handling null.
|
java.lang.String |
toString()
Deprecated.
Returns a full information debugging string.
|
addPredicate, axisIterator, getAxis, getAxisName, getIterableAxis, getPredicates, getPredicateSet, simplify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
axisIterator, getAxis, simplify
addPredicate, getPredicates, getPredicateSet
private static final long serialVersionUID
private java.lang.String prefix
private java.lang.String localName
private boolean matchesAnyName
private boolean hasPrefix
public DefaultNameStep(IterableAxis axis, java.lang.String prefix, java.lang.String localName, PredicateSet predicateSet)
axis
- the axis to work throughprefix
- the name prefixlocalName
- the local namepredicateSet
- the set of predicatespublic java.lang.String getPrefix()
public java.lang.String getLocalName()
getLocalName
in interface NameStep
public boolean isMatchesAnyName()
public java.lang.String getText()
getText
in interface Step
getText
in class DefaultStep
public java.util.List evaluate(Context context) throws JaxenException
This method overrides the version in DefaultStep
for performance.
evaluate
in interface Step
evaluate
in class DefaultStep
JaxenException
public boolean matches(java.lang.Object node, ContextSupport contextSupport) throws JaxenException
matches
in interface Step
node
- the node to checkcontextSupport
- the context supportJaxenException
private boolean hasNamespace(java.lang.String uri)
uri
- the URI to checkprotected boolean matchesNamespaceURIs(java.lang.String uri1, java.lang.String uri2)
uri1
- the first URIuri2
- the second URIpublic java.lang.String toString()
toString
in class DefaultStep