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
  • Constructor Details

    • 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 Details

    • 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.
    • getPredicates

      public List<Predicate> getPredicates()
      Returns a list of this Step object's predicates.