Class AbstractXmlRule
- java.lang.Object
-
- org.apache.commons.digester3.Rule
-
- org.apache.commons.digester3.xmlrules.PatternRule
-
- org.apache.commons.digester3.xmlrules.AbstractXmlRule
-
- Direct Known Subclasses:
AbstractXmlMethodRule
,BeanPropertySetterRule
,CallMethodRule
,CallParamRule
,FactoryCreateRule
,NodeCreateRule
,ObjectCreateRule
,ObjectParamRule
,SetNestedPropertiesRule
,SetPropertiesRule
,SetPropertyRule
abstract class AbstractXmlRule extends PatternRule
-
-
Field Summary
Fields Modifier and Type Field Description private RulesBinder
targetRulesBinder
-
Constructor Summary
Constructors Constructor Description AbstractXmlRule(RulesBinder targetRulesBinder, PatternStack patternStack)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
begin(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes)
This method is called when the beginning of a matching XML element is encountered.protected abstract void
bindRule(LinkedRuleBuilder linkedRuleBuilder, org.xml.sax.Attributes attributes)
-
Methods inherited from class org.apache.commons.digester3.xmlrules.PatternRule
end, getMatchingPattern
-
Methods inherited from class org.apache.commons.digester3.Rule
body, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
-
-
-
-
Field Detail
-
targetRulesBinder
private final RulesBinder targetRulesBinder
-
-
Constructor Detail
-
AbstractXmlRule
public AbstractXmlRule(RulesBinder targetRulesBinder, PatternStack patternStack)
-
-
Method Detail
-
begin
public void begin(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes) throws java.lang.Exception
This method is called when the beginning of a matching XML element is encountered.- Overrides:
begin
in classPatternRule
- 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:
java.lang.Exception
- if any error occurs
-
bindRule
protected abstract void bindRule(LinkedRuleBuilder linkedRuleBuilder, org.xml.sax.Attributes attributes) throws java.lang.Exception
- Parameters:
linkedRuleBuilder
-attributes
-- Throws:
java.lang.Exception
-
-