public class XmlElementRenderable
extends java.lang.Object
| Constructor and Description |
|---|
XmlElementRenderable(org.w3c.dom.Element element,
XmlRendererHelper renderer)
Instantiates a new xml element renderable.
|
XmlElementRenderable(java.lang.String name,
Attribute[] attributes)
Instantiates a new xml element renderable.
|
| Modifier and Type | Method and Description |
|---|---|
XmlElementRenderable |
append(java.lang.String childName)
Append the given value with given tag name.
|
void |
append(java.lang.String childName,
java.lang.Boolean value)
Append the given value with given tag name.
|
void |
append(java.lang.String childName,
java.util.Date value)
Append the given value with given tag name.
|
void |
append(java.lang.String childName,
java.util.Date value,
java.lang.String format)
Append the given value with given tag name and the given date format.
|
void |
append(java.lang.String childName,
java.lang.Number value)
Append the given value with given tag name.
|
void |
append(java.lang.String childName,
java.lang.Number value,
java.lang.Number invalidValue)
Append the given value with given tag name.
|
void |
append(java.lang.String childName,
java.lang.String value)
Append the given value with given tag name.
|
void |
append(java.lang.String parentName,
java.lang.String childName,
java.util.List<java.lang.String> list)
Append the given value with given tag name.
|
protected org.w3c.dom.Node |
getNode()
Returns the internal/wrapped node.
|
void |
setAttribute(Attribute attribute)
Sets the attribute.
|
void |
setContent(java.lang.String value)
Sets the content.
|
public XmlElementRenderable(org.w3c.dom.Element element,
XmlRendererHelper renderer)
element - the elementrenderer - the rendererpublic XmlElementRenderable(java.lang.String name,
Attribute[] attributes)
throws XmlRendererHelperException
name - the nameattributes - the attributesXmlRendererHelperException - the xml renderer helper exceptionpublic void setContent(java.lang.String value)
value - the new contentpublic void setAttribute(Attribute attribute)
attribute - the new attributepublic void append(java.lang.String childName,
java.lang.String value)
childName - the child namevalue - the valuepublic void append(java.lang.String childName,
java.lang.Number value)
childName - the child namevalue - the valuepublic void append(java.lang.String childName,
java.lang.Number value,
java.lang.Number invalidValue)
childName - the child namevalue - the valueinvalidValue - the invalid valuepublic void append(java.lang.String childName,
java.util.Date value)
childName - the child namevalue - the valuepublic void append(java.lang.String childName,
java.util.Date value,
java.lang.String format)
childName - the child namevalue - the valueformat - date formatpublic void append(java.lang.String childName,
java.lang.Boolean value)
childName - the child namevalue - the valuepublic void append(java.lang.String parentName,
java.lang.String childName,
java.util.List<java.lang.String> list)
parentName - the parent namechildName - the child namelist - the listpublic XmlElementRenderable append(java.lang.String childName)
childName - the child nameprotected org.w3c.dom.Node getNode()