| Modifier and Type | Field and Description |
|---|---|
| protected Digester | digester
The Digester with which this Rule is associated. |
| protected String | namespaceURI
The namespace URI for which this Rule is relevant, if any. |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin(String
the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the
element has no namespace namespace, String the local name if the parser is namespace aware, or just
the element name otherwise name, Attributes The attribute list of this element attributes)This method is called when the beginning of a matching XML element is encountered. |
| public void | body(String
the namespace URI of the matching element, or an empty
string if the parser is not namespace aware or the
element has no namespace namespace, String the local name if the parser is namespace aware, or just the
element name otherwise name, String The text of the body of this element text)This method is called when the body of a matching XML element is encountered. |
| public void | end(String
the namespace URI of the matching element, or an empty
string if the parser is not namespace aware or the
element has no namespace namespace, String the local name if the parser is namespace aware, or just the
element name otherwise name)This method is called when the end of a matching XML element is encountered. |
| public void | finish()
This method is called after all parsing methods have been called, to allow Rules to remove temporary data. |
| public Digester | Returns: the Digester with which this Rule is associated.Identify the Digester with which this Rule is associated. |
| public String | Returns: The namespace URI for which this rule is relevant ornull if none.Return the namespace URI for which this Rule is relevant, if any. |
| public void | setDigester(Digester
The digester with which to associate this rule digester)Set the |
| public void | setNamespaceURI(String
Namespace URI for which this Rule is relevant,
or namespaceURI)null to match independent of namespace.Set the namespace URI for which this Rule is relevant, if any. |
| digester | back to summary |
|---|---|
| protected Digester digester The Digester with which this Rule is associated. | |
| namespaceURI | back to summary |
|---|---|
| protected String namespaceURI The namespace URI for which this Rule is relevant, if any. | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| Rule | back to summary |
|---|---|
| public Rule() Base constructor. Now the digester will be set when the rule is added. | |
| begin | back to summary |
|---|---|
| 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. The default implementation is a NO-OP.
| |
| body | back to summary |
|---|---|
| public void body(String namespace, String name, String text) throws Exception This method is called when the body of a matching XML element is encountered. If the element has no body, this method is not called at all. The default implementation is a NO-OP.
| |
| end | back to summary |
|---|---|
| public void end(String namespace, String name) throws Exception This method is called when the end of a matching XML element is encountered. The default implementation is a NO-OP.
| |
| finish | back to summary |
|---|---|
| public void finish() throws Exception This method is called after all parsing methods have been called, to allow Rules to remove temporary data.
| |
| getDigester | back to summary |
|---|---|
| public Digester getDigester() Identify the Digester with which this Rule is associated.
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Return the namespace URI for which this Rule is relevant, if any.
| |
| setDigester | back to summary |
|---|---|
| public void setDigester(Digester digester) Set the
| |
| setNamespaceURI | back to summary |
|---|---|
| public void setNamespaceURI(String namespaceURI) Set the namespace URI for which this Rule is relevant, if any.
| |