Class RegexMatcher

  • Direct Known Subclasses:
    SimpleRegexMatcher

    public abstract class RegexMatcher
    extends java.lang.Object
    Regular expression matching strategy for RegexRules.
    Since:
    1.5
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexMatcher()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean match​(java.lang.String pathPattern, java.lang.String rulePattern)
      Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexMatcher

        public RegexMatcher()
    • Method Detail

      • match

        public abstract boolean match​(java.lang.String pathPattern,
                                      java.lang.String rulePattern)
        Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.
        Parameters:
        pathPattern - the standard digester path representing the element
        rulePattern - the regex pattern the path will be tested against
        Returns:
        true if the given pattern matches the given path