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, simplifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaxisIterator, getAxis, simplifyaddPredicate, getPredicates, getPredicateSetpublic 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 NameSteppublic boolean isMatchesAnyName()
public String getText()
getText in interface StepgetText in class DefaultSteppublic List evaluate(Context context) throws JaxenException
This method overrides the version in DefaultStep for performance.
evaluate in interface Stepevaluate in class DefaultStepJaxenExceptionpublic boolean matches(Object node, ContextSupport contextSupport) throws JaxenException
matches in interface Stepnode - the node to checkcontextSupport - the context supportJaxenExceptionprotected boolean matchesNamespaceURIs(String uri1, String uri2)
uri1 - the first URIuri2 - the second URIpublic String toString()
toString in class DefaultStepCopyright © 2001-2012 Codehaus. All Rights Reserved.