Class PatternRule
java.lang.Object
org.apache.commons.digester3.Rule
org.apache.commons.digester3.xmlrules.PatternRule
- Direct Known Subclasses:
AbstractXmlRule
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatternRule
(String attributeName, PatternStack patternStack) PatternRule
(PatternStack patternStack) -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(String namespace, String name, Attributes attributes) This method is called when the beginning of a matching XML element is encountered.void
This method is called when the end of a matching XML element is encountered.protected String
Methods inherited from class org.apache.commons.digester3.Rule
body, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
-
Field Details
-
attributeName
-
patternStack
-
pattern
-
-
Constructor Details
-
PatternRule
-
PatternRule
-
-
Method Details
-
begin
This method is called when the beginning of a matching XML element is encountered.- Overrides:
begin
in classRule
- 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 namespacename
- the local name if the parser is namespace aware, or just the element name otherwiseattributes
- The attribute list of this element- Throws:
Exception
- if any error occurs
-
end
This method is called when the end of a matching XML element is encountered.- Overrides:
end
in classRule
- 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 namespacename
- the local name if the parser is namespace aware, or just the element name otherwise- Throws:
Exception
- if any error occurs
-
getMatchingPattern
- Returns:
-