appendValue
public Element appendValue(String name,
Class<?> klass,
String value)
Appends a value element to the current element. Value elements have
associated text, but no other children.
- Overrides:
appendValue
in class Bean2XmlAppenders.BasicAppender
- Parameters:
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.
- Returns:
- The appended element. This is a convenience for subclasses,
which may want to set additional attributes after their
super has done the work of appending the element.