org.jaxen.expr
Class DefaultNameStep
java.lang.Object
|
+--org.jaxen.expr.DefaultStep
|
+--org.jaxen.expr.DefaultNameStep
- All Implemented Interfaces:
- Predicated, Serializable, Step
- public class DefaultNameStep
- extends DefaultStep
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".
- Author:
- bob mcwhirter (bob@werken.com)
- See Also:
- Serialized Form
DefaultNameStep
public DefaultNameStep(IterableAxis axis,
String prefix,
String localName)
getPrefix
public String getPrefix()
getLocalName
public String getLocalName()
isMatchesAnyName
public boolean isMatchesAnyName()
getText
public String getText()
- Overrides:
getText
in class DefaultStep
toString
public String toString()
- Overrides:
toString
in class DefaultStep
matches
public boolean matches(Object node,
ContextSupport contextSupport)
matchesNamespaceURIs
protected boolean matchesNamespaceURIs(String u1,
String u2)
- Returns:
- true if the two namespace URIs are equal
Note that we may wish to consider null being equal to ""
Copyright © 2002 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by