Class PathMatcher

Direct Known Subclasses:
FieldMatcher, SelectorMatcher

public abstract class PathMatcher extends MatcherBundle
Base implementation of XPath matching engine. It only supports the subset defined in XML Schema Part 1. Extra care must be taken to call the testInitialMatch method after the creation of an object. Match to an attribute is not supported. It is implemented in FieldPathMatcher class. The onMatched method is called when the specified XPath matches the current element. Derived classes should implement this method to do something useful.
  • Field Details

    • matchFound

      private boolean matchFound
      a flag that indicates that this element/attribute matches the path expression. This flag is set by one of the child SinglePathMatcher.
  • Constructor Details

  • Method Details