Class SetNamespaceURIRule
- java.lang.Object
-
- org.apache.commons.digester3.Rule
-
- org.apache.commons.digester3.xmlrules.SetNamespaceURIRule
-
final class SetNamespaceURIRule extends Rule
- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private NameSpaceURIRulesBinder
rulesBinder
-
Constructor Summary
Constructors Constructor Description SetNamespaceURIRule(NameSpaceURIRulesBinder rulesBinder)
-
Method Summary
All Methods Instance 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.void
end(java.lang.String namespace, java.lang.String name)
This method is called when the end of a matching XML element is encountered.-
Methods inherited from class org.apache.commons.digester3.Rule
body, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
-
-
-
-
Field Detail
-
rulesBinder
private final NameSpaceURIRulesBinder rulesBinder
-
-
Constructor Detail
-
SetNamespaceURIRule
public SetNamespaceURIRule(NameSpaceURIRulesBinder rulesBinder)
-
-
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 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:
java.lang.Exception
- if any error occurs
-
end
public void end(java.lang.String namespace, java.lang.String name) throws java.lang.Exception
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:
java.lang.Exception
- if any error occurs
-
-