|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.digester.Rule
public abstract class 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 String |
namespaceURI
The namespace URI for which this Rule is relevant, if any. |
Constructor Summary | |
---|---|
Rule()
Base constructor. |
Method Summary | |
---|---|
void |
begin(Attributes attributes)
Deprecated. Use the begin
method with namespace and name
parameters instead. |
void |
begin(String namespace,
String name,
Attributes attributes)
This method is called when the beginning of a matching XML element is encountered. |
void |
body(String text)
Deprecated. Use the body method
with namespace and name parameters
instead. |
void |
body(String namespace,
String name,
String text)
This method is called when the body of a matching XML element is encountered. |
void |
end()
Deprecated. Use the end method with
namespace and name parameters instead. |
void |
end(String namespace,
String name)
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. |
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(String namespaceURI)
Set the namespace URI for which this Rule is relevant, if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Digester digester
protected String namespaceURI
Constructor Detail |
---|
public 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 String getNamespaceURI()
public void setNamespaceURI(String namespaceURI)
namespaceURI
- Namespace URI for which this Rule is relevant,
or null
to match independent of namespace.@Deprecated public void begin(Attributes attributes) throws Exception
begin
method with namespace
and name
parameters instead.
attributes
- The attribute list of this element
Exception
public void begin(String namespace, String name, Attributes attributes) throws Exception
begin
without the
namespace
and name
parameters, to retain
backwards compatibility.
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
Exception
@Deprecated public void body(String text) throws Exception
body
method
with namespace
and name
parameters
instead.
text
- The text of the body of this element
Exception
public void body(String namespace, String name, String text) throws Exception
body
without the namespace
and
name
parameters, to retain backwards compatibility.
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 otherwisetext
- The text of the body of this element
Exception
@Deprecated public void end() throws Exception
end
method with
namespace
and name
parameters instead.
Exception
public void end(String namespace, String name) throws Exception
end
without the
namespace
and name
parameters, to retain
backwards compatibility.
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
Exception
public void finish() throws Exception
Exception
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |