Package org.jaxen.expr
Class DefaultNameStep
java.lang.Object
org.jaxen.expr.DefaultStep
org.jaxen.expr.DefaultNameStep
- All Implemented Interfaces:
Serializable
,NameStep
,Predicated
,Step
Deprecated.
this class will become non-public in the future;
use the interface instead
Expression object that represents any flavor
of name-test steps within an XPath.
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".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Deprecated.Quick flag denoting if we have a namespace prefixprivate String
Deprecated.Our local-name.private boolean
Deprecated.Quick flag denoting if the local name was '*'private String
Deprecated.Our prefix, bound through the current Context.private static final long
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultNameStep
(IterableAxis axis, String prefix, String localName, PredicateSet predicateSet) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Evaluate the context node set to find the new node set.Deprecated.Gets the local name.Deprecated.Gets the namespace prefix.getText()
Deprecated.Gets the step as a fully defined XPath.private boolean
hasNamespace
(String uri) Deprecated.Checks whether the URI represents a namespace.boolean
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.toString()
Deprecated.Returns a full information debugging string.Methods inherited from class org.jaxen.expr.DefaultStep
addPredicate, axisIterator, getAxis, getAxisName, getIterableAxis, getPredicates, getPredicateSet, simplify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jaxen.expr.Predicated
addPredicate, getPredicates, getPredicateSet
Methods inherited from interface org.jaxen.expr.Step
axisIterator, getAxis, simplify
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
prefix
Deprecated.Our prefix, bound through the current Context. The empty-string ("") if no prefix was specified. Decidedly NOT-NULL, due to SAXPath constraints. This is the 'foo' in 'foo:bar'. -
localName
Deprecated.Our local-name. This is the 'bar' in 'foo:bar'. -
matchesAnyName
private boolean matchesAnyNameDeprecated.Quick flag denoting if the local name was '*' -
hasPrefix
private boolean hasPrefixDeprecated.Quick flag denoting if we have a namespace prefix
-
-
Constructor Details
-
DefaultNameStep
public DefaultNameStep(IterableAxis axis, String prefix, String localName, PredicateSet predicateSet) Deprecated.Constructor.- Parameters:
axis
- the axis to work throughprefix
- the name prefixlocalName
- the local namepredicateSet
- the set of predicates
-
-
Method Details
-
getPrefix
Deprecated.Gets the namespace prefix. -
getLocalName
Deprecated.Gets the local name.- Specified by:
getLocalName
in interfaceNameStep
- Returns:
- the local name
-
isMatchesAnyName
public boolean isMatchesAnyName()Deprecated.Does this step match any name? (i.e. Is it '*'?)- Returns:
- true if it matches any name
-
getText
Deprecated.Gets the step as a fully defined XPath.- Specified by:
getText
in interfaceStep
- Overrides:
getText
in classDefaultStep
- Returns:
- the full XPath for this step
-
evaluate
Deprecated.Evaluate the context node set to find the new node set.This method overrides the version in
DefaultStep
for performance.- Specified by:
evaluate
in interfaceStep
- Overrides:
evaluate
in classDefaultStep
- Returns:
- a list of matching nodes
- Throws:
JaxenException
-
matches
Deprecated.Checks whether the node matches this step.- Specified by:
matches
in interfaceStep
- Parameters:
node
- the node to checkcontextSupport
- the context support- Returns:
- true if matches
- Throws:
JaxenException
-
hasNamespace
Deprecated.Checks whether the URI represents a namespace.- Parameters:
uri
- the URI to check- Returns:
- true if non-null and non-empty
-
matchesNamespaceURIs
Deprecated.Compares two namespace URIs, handling null.- Parameters:
uri1
- the first URIuri2
- the second URI- Returns:
- true if equal, where null==""
-
toString
Deprecated.Returns a full information debugging string.- Overrides:
toString
in classDefaultStep
- Returns:
- a debugging string
-