|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.commons.digester.Rule
Concrete implementations of this class implement actions to be taken when a corresponding nested pattern of XML elements has been matched.
| Field Summary | |
protected Digester |
digester
The Digester with which this Rule is associated. |
protected java.lang.String |
namespaceURI
The namespace URI for which this Rule is relevant, if any. |
| Constructor Summary | |
Rule()
Base constructor. |
|
Rule(Digester digester)
Deprecated. The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method. Use Rule() instead. |
|
| Method Summary | |
void |
begin(org.xml.sax.Attributes attributes)
This method is called when the beginning of a matching XML element is encountered. |
void |
body(java.lang.String text)
This method is called when the body of a matching XML element is encountered. |
void |
end()
This method is called when the end of a matching XML element is encountered. |
void |
finish()
This method is called after all parsing methods have been called, to allow Rules to remove temporary data. |
Digester |
getDigester()
Return the Digester with which this Rule is associated. |
java.lang.String |
getNamespaceURI()
Return the namespace URI for which this Rule is relevant, if any. |
void |
setDigester(Digester digester)
Set the Digester with which this Rule is associated. |
void |
setNamespaceURI(java.lang.String namespaceURI)
Set the namespace URI for which this Rule is relevant, if any. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected Digester digester
protected java.lang.String namespaceURI
| Constructor Detail |
public Rule(Digester digester)
Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method. Use Rule() instead.
digester - The digester with which this rule is associatedpublic Rule()
Base constructor. Now the digester will be set when the rule is added.
| Method Detail |
public Digester getDigester()
public void setDigester(Digester digester)
Digester with which this Rule is associated.public java.lang.String getNamespaceURI()
public void setNamespaceURI(java.lang.String namespaceURI)
namespaceURI - Namespace URI for which this Rule is relevant,
or null to match independent of namespace.
public void begin(org.xml.sax.Attributes attributes)
throws java.lang.Exception
attributes - The attribute list of this element
public void body(java.lang.String text)
throws java.lang.Exception
text - The text of the body of this element
public void end()
throws java.lang.Exception
public void finish()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||