public static class Bean2XmlAppenders.MapAppender extends Bean2XmlAppenders.BasicAppender
Map
. Depending on options,
will either create children named after the key, or a generic "data"
child with the key as an attribute.Constructor and Description |
---|
Bean2XmlAppenders.MapAppender(Bean2XmlAppenders.Appender parent,
Element node,
Object nodeObject) |
Modifier and Type | Method and Description |
---|---|
Element |
appendContainer(String name,
Class<?> klass)
Appends a container element to the current element.
|
Element |
appendValue(String name,
Class<?> klass,
String value)
Appends a value element to the current element.
|
isCircularReference, isOptionSet, overrideType, setType, setValue, shouldSkip
public Bean2XmlAppenders.MapAppender(Bean2XmlAppenders.Appender parent, Element node, Object nodeObject)
public Element appendValue(String name, Class<?> klass, String value)
Bean2XmlAppenders.Appender
appendValue
in class Bean2XmlAppenders.BasicAppender
name
- Name to be associated with the node.klass
- Java class for this node. May (depending on options)
be stored in the type
attribute.value
- The node's value. May be null
, in
which case the appender decides whether or not
to actually append the node.public Element appendContainer(String name, Class<?> klass)
Bean2XmlAppenders.Appender
appendContainer
in class Bean2XmlAppenders.BasicAppender