| java.lang.Object org.apache.tomcat.util.digester.Rule
All known Subclasses: org.apache.tomcat.util.digester.CallMethodRule, org.apache.tomcat.util.digester.SetPropertyRule, org.apache.tomcat.util.digester.ObjectCreateRule, org.apache.tomcat.util.digester.FactoryCreateRule, org.apache.catalina.startup.SetNextNamingRule, org.apache.tomcat.util.digester.SetNextRule, org.apache.catalina.startup.LifecycleListenerRule, org.apache.catalina.startup.CopyParentClassLoaderRule, org.apache.tomcat.util.digester.SetPropertiesRule, org.apache.tomcat.util.digester.PathCallParamRule, org.apache.catalina.startup.ConnectorCreateRule, org.apache.catalina.startup.SetContextPropertiesRule, org.apache.tomcat.util.digester.SetTopRule, org.apache.tomcat.util.digester.ObjectParamRule, org.apache.tomcat.util.digester.NodeCreateRule, org.apache.catalina.startup.SetAllPropertiesRule, org.apache.tomcat.util.digester.CallParamRule, org.apache.tomcat.util.digester.SetRootRule,
Rule | abstract public class Rule (Code) | | 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 String | namespaceURI The namespace URI for which this Rule is relevant, if any. |
Constructor Summary | |
public | Rule(Digester digester) Constructor sets the associated Digester. | public | Rule() Base constructor. |
Method Summary | |
public void | begin(Attributes attributes) This method is called when the beginning of a matching XML element
is encountered. | public void | begin(String namespace, String name, Attributes attributes) This method is called when the beginning of a matching XML element
is encountered. | public void | body(String text) This method is called when the body of a matching XML element
is encountered. | public void | body(String namespace, String name, String text) This method is called when the body of a matching XML element is
encountered. | public void | end() This method is called when the end of a matching XML element
is encountered. | public void | end(String namespace, String 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 | getDigester() Return the Digester with which this Rule is associated. | public String | getNamespaceURI() Return the namespace URI for which this Rule is relevant, if any. | public void | setDigester(Digester digester) Set the Digester with which this Rule is associated. | public void | setNamespaceURI(String namespaceURI) Set the namespace URI for which this Rule is relevant, if any. |
digester | protected Digester digester(Code) | | The Digester with which this Rule is associated.
|
namespaceURI | protected String namespaceURI(Code) | | The namespace URI for which this Rule is relevant, if any.
|
Rule | public Rule()(Code) | | Base constructor.
Now the digester will be set when the rule is added.
|
begin | public void begin(String namespace, String name, Attributes attributes) throws Exception(Code) | | This method is called when the beginning of a matching XML element
is encountered. The default implementation delegates to the deprecated
method
Rule.begin(Attributes) begin without the
namespace and name parameters, to retain
backwards compatibility.
Parameters: namespace - the namespace URI of the matching element, or an empty string if the parser is not namespace aware or the element hasno namespace Parameters: name - the local name if the parser is namespace aware, or just the element name otherwise Parameters: attributes - The attribute list of this element since: Digester 1.4 |
body | public void body(String text) throws Exception(Code) | | 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.
Parameters: text - The text of the body of this elementRule.body(String,String,String) body |
body | public void body(String namespace, String name, String text) throws Exception(Code) | | 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 delegates to the deprecated method
Rule.body(String) body without the namespace and
name parameters, to retain backwards compatibility.
Parameters: namespace - the namespace URI of the matching element, or an empty string if the parser is not namespace aware or the element hasno namespace Parameters: name - the local name if the parser is namespace aware, or just the element name otherwise Parameters: text - The text of the body of this element since: Digester 1.4 |
end | public void end(String namespace, String name) throws Exception(Code) | | This method is called when the end of a matching XML element
is encountered. The default implementation delegates to the deprecated
method
Rule.end end without the
namespace and name parameters, to retain
backwards compatibility.
Parameters: namespace - the namespace URI of the matching element, or an empty string if the parser is not namespace aware or the element hasno namespace Parameters: name - the local name if the parser is namespace aware, or just the element name otherwise since: Digester 1.4 |
finish | public void finish() throws Exception(Code) | | This method is called after all parsing methods have been
called, to allow Rules to remove temporary data.
|
getDigester | public Digester getDigester()(Code) | | Return the Digester with which this Rule is associated.
|
getNamespaceURI | public String getNamespaceURI()(Code) | | Return the namespace URI for which this Rule is relevant, if any.
|
setDigester | public void setDigester(Digester digester)(Code) | | Set the Digester with which this Rule is associated.
|
setNamespaceURI | public void setNamespaceURI(String namespaceURI)(Code) | | Set the namespace URI for which this Rule is relevant, if any.
Parameters: namespaceURI - Namespace URI for which this Rule is relevant,or null to match independent of namespace. |
|
|