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".
Constructor and Description |
---|
DefaultNameStep(IterableAxis axis,
String prefix,
String localName,
PredicateSet predicateSet)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List |
evaluate(Context context)
Deprecated.
Evaluate the context node set to find the new node set.
|
String |
getLocalName()
Deprecated.
Gets the local name.
|
String |
getPrefix()
Deprecated.
Gets the namespace prefix.
|
String |
getText()
Deprecated.
Gets the step as a fully defined XPath.
|
boolean |
isMatchesAnyName()
Deprecated.
Does this step match any name? (i.e.
|
boolean |
matches(Object node,
ContextSupport contextSupport)
Deprecated.
Checks whether the node matches this step.
|
protected boolean |
matchesNamespaceURIs(String uri1,
String uri2)
Deprecated.
Compares two namespace URIs, handling null.
|
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
public DefaultNameStep(IterableAxis axis, String prefix, String localName, PredicateSet predicateSet)
axis
- the axis to work throughprefix
- the name prefixlocalName
- the local namepredicateSet
- the set of predicatespublic String getPrefix()
public String getLocalName()
getLocalName
in interface NameStep
public boolean isMatchesAnyName()
public String getText()
getText
in interface Step
getText
in class DefaultStep
public 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(Object node, ContextSupport contextSupport) throws JaxenException
matches
in interface Step
node
- the node to checkcontextSupport
- the context supportJaxenException
protected boolean matchesNamespaceURIs(String uri1, String uri2)
uri1
- the first URIuri2
- the second URIpublic String toString()
toString
in class DefaultStep
Copyright © 2001–2015 Codehaus. All rights reserved.