Class Step
- java.lang.Object
-
- org.apache.taglibs.standard.extra.spath.Step
-
public class Step extends Object
Represents a 'step' in an SPath expression.
- Author:
- Shawn Bayern
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the Step's node name.List<Predicate>getPredicates()Returns a list of this Step object's predicates.booleanisDepthUnlimited()Returns true if the Step's depth is unlimited, false otherwise.booleanisMatchingName(String uri, String localPart)Returns true if the given name matches the Step object's name, taking into account the Step object's wildcards; returns false otherwise.
-
-
-
Constructor Detail
-
Step
public Step(boolean depthUnlimited, String name, List<Predicate> predicates)Constructs a new Step object, given a name and a (possibly null) list of predicates. A boolean is also passed, indicating whether this particular Step is relative to the 'descendent-or-self' axis of the node courrently under consideration. If true, it is; if false, then this Step is rooted as a direct child of the node under consideration.
-
-
Method Detail
-
isMatchingName
public boolean isMatchingName(String uri, String localPart)
Returns true if the given name matches the Step object's name, taking into account the Step object's wildcards; returns false otherwise.
-
isDepthUnlimited
public boolean isDepthUnlimited()
Returns true if the Step's depth is unlimited, false otherwise.
-
getName
public String getName()
Returns the Step's node name.
-
-