Class PatternRule

java.lang.Object
org.apache.commons.digester3.Rule
org.apache.commons.digester3.xmlrules.PatternRule
Direct Known Subclasses:
AbstractXmlRule

class PatternRule extends Rule
  • Field Details

    • attributeName

      private final String attributeName
    • patternStack

      private final PatternStack patternStack
    • pattern

      private String pattern
  • Constructor Details

  • Method Details

    • begin

      public void begin(String namespace, String name, Attributes attributes) throws Exception
      This method is called when the beginning of a matching XML element is encountered.
      Overrides:
      begin in class Rule
      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
      name - the local name if the parser is namespace aware, or just the element name otherwise
      attributes - The attribute list of this element
      Throws:
      Exception - if any error occurs
    • end

      public void end(String namespace, String name) throws Exception
      This method is called when the end of a matching XML element is encountered.
      Overrides:
      end in class Rule
      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
      name - the local name if the parser is namespace aware, or just the element name otherwise
      Throws:
      Exception - if any error occurs
    • getMatchingPattern

      protected String getMatchingPattern()
      Returns: