public class SimpleTagWriter extends XMLTagWriter
| Constructor and Description |
|---|
SimpleTagWriter(XMLTagWriter parent,
String tagName)
Creates a new optional simple tag writer.
|
SimpleTagWriter(XMLTagWriter parent,
String tagName,
boolean mandatory)
Creates a new simple tag writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTagName()
Returns the preset tag name.
|
protected void |
writeContent(XMLOutputter xmlOut,
Object object)
Outputs the given objects by calling its
Object.toString() method. |
addSubTagWriter, addSubTagWriter, addSubTagWriter, debug, error, getAllSubTagWriter, getAttributesMap, getEnclosingWriter, getParent, getSubTagWriter, getSubTagWriter, getSubTagWriterMap, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isMandatory, isWarnEnabled, warn, writepublic SimpleTagWriter(XMLTagWriter parent, String tagName)
parent - the parent writer, may be nulltagName - the tag namepublic SimpleTagWriter(XMLTagWriter parent, String tagName, boolean mandatory)
parent - the parent writer, may be nulltagName - the tag namemandatory - tells whether or not this tag requires a non-null value or notprotected void writeContent(XMLOutputter xmlOut,
Object object)
throws IOException
Object.toString() method.writeContent in class XMLTagWriterxmlOut - the XMLOutputter to write toobject - the data object provided by the parent tag writer, may be nullIOExceptionprotected String getTagName()
getTagName in class XMLTagWriterCopyright © 2017 SAP SE. All Rights Reserved.