public class MapEntryRule
extends org.apache.commons.digester.Rule
Digester rule for the <map-entry> element.
| Constructor and Description |
|---|
MapEntryRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(String namespace,
String name,
Attributes attributes)
Create an empty instance of
MapEntryBean
and push it on to the object stack. |
void |
body(String namespace,
String name,
String text)
No body processing is requlred.
|
void |
end(String namespace,
String name)
Pop the
MapEntryBean off the top of the stack,
and add the new entry. |
void |
finish()
No finish processing is required.
|
String |
toString() |
public void begin(String namespace, String name, Attributes attributes) throws Exception
Create an empty instance of MapEntryBean
and push it on to the object stack.
begin in class org.apache.commons.digester.Rulenamespace - 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 elementIllegalStateException - if the parent stack element is not
of type MapEntryHolderExceptionpublic void body(String namespace, String name, String text) throws Exception
No body processing is requlred.
body in class org.apache.commons.digester.Rulenamespace - 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 elementExceptionpublic void end(String namespace, String name) throws Exception
Pop the MapEntryBean off the top of the stack,
and add the new entry.
end in class org.apache.commons.digester.Rulenamespace - 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 otherwiseIllegalStateException - if the popped object is not
of the correct typeExceptionpublic void finish()
throws Exception
No finish processing is required.
finish in class org.apache.commons.digester.RuleExceptionCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.