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

Constructor Summary
DefaultNameStep(IterableAxis axis, String prefix, String localName)
           
 
Method Summary
 String getLocalName()
           
 String getPrefix()
           
 String getText()
           
 boolean isMatchesAnyName()
           
 boolean matches(Object node, ContextSupport contextSupport)
           
protected  boolean matchesNamespaceURIs(String u1, String u2)
           
 String toString()
           
 
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
 

Constructor Detail

DefaultNameStep

public DefaultNameStep(IterableAxis axis,
                       String prefix,
                       String localName)
Method Detail

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

SourceForge Logo