public static class Bean2XmlAppenders.DirectAppender extends Bean2XmlAppenders.Appender
Constructor and Description |
---|
Bean2XmlAppenders.DirectAppender(EnumSet<Bean2XmlOptions> options,
Element elem,
Object rootObj) |
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.DirectAppender(EnumSet<Bean2XmlOptions> options, Element elem, Object rootObj)
public Element appendValue(String name, Class<?> klass, String value)
Bean2XmlAppenders.Appender
appendValue
in class Bean2XmlAppenders.Appender
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.Appender