Class PatternRuleMatcher

java.lang.Object
org.apache.commons.digester3.PatternRuleMatcher
All Implemented Interfaces:
RuleMatcher

final class PatternRuleMatcher extends Object implements RuleMatcher
Since:
3.0
  • Field Details

    • pattern

      private final String pattern
    • namespaceURI

      private String namespaceURI
  • Constructor Details

    • PatternRuleMatcher

      public PatternRuleMatcher(String pattern)
    • PatternRuleMatcher

      public PatternRuleMatcher(String pattern, String namespaceURI)
  • Method Details

    • match

      public boolean match(String namespace, String pattern, String name, Attributes attributes)
      Use the specified parameter to perform a test.
      Specified by:
      match in interface RuleMatcher
      Parameters:
      namespace - the namespace URI of the matching element, or an empty string if the parser is not namespace aware or the element has no namespace
      pattern - Nesting pattern to be matched for this Rule
      name - the local name if the parser is namespace aware, or just the element name otherwise
      attributes - The attribute list of this element
      Returns:
      true, if the test succeeds, false otherwise
    • getPattern

      public String getPattern()
    • getNamespaceURI

      public String getNamespaceURI()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object