XMLTagWriter@Deprecated public abstract class XMLTagWriter extends Object
XMLTagWriter.| Constructor and Description |
|---|
XMLTagWriter(XMLTagWriter parent)
Deprecated.
Constructs an instance of
XMLTagWriter. |
XMLTagWriter(XMLTagWriter parent,
boolean mandatory)
Deprecated.
Constructs an instance of
XMLTagWriter. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubTagWriter(String tagName,
Map typeMap)
Deprecated.
Here you can add or replace an sub-
XMLTagWriter to this XMLTagWriter. |
void |
addSubTagWriter(XMLTagWriter tagWriter)
Deprecated.
Here you can add or replace an sub-
XMLTagWriter to this XMLTagWriter. |
void |
addSubTagWriter(XMLTagWriter tagWriter,
String type)
Deprecated.
Here you can add or replace an sub-
XMLTagWriter to this XMLTagWriter. |
protected void |
debug(String message)
Deprecated.
|
protected void |
error(String message)
Deprecated.
|
Collection |
getAllSubTagWriter()
Deprecated.
Returns all tagwriter of this
XMLTagWriter |
protected Map |
getAttributesMap(Object object)
Deprecated.
Overwrite this method, if you want to specify attributes at the actual tag.
|
protected XMLTagWriter |
getParent()
Deprecated.
Returns the parent of this
XMLTagWriter |
XMLTagWriter |
getSubTagWriter(String tagName)
Deprecated.
Returns the
XMLTagWriter with the given tagName |
XMLTagWriter |
getSubTagWriter(String tagName,
String type)
Deprecated.
Returns the
XMLTagWriter with the given tagName |
protected abstract String |
getTagName()
Deprecated.
Returns the name of the xml tag.
|
protected void |
info(String message)
Deprecated.
|
protected boolean |
isDebugEnabled()
Deprecated.
|
protected boolean |
isErrorEnabled()
Deprecated.
|
protected boolean |
isInfoEnabled()
Deprecated.
|
boolean |
isMandatory()
Deprecated.
|
protected boolean |
isWarnEnabled()
Deprecated.
|
protected void |
warn(String message)
Deprecated.
|
void |
write(XMLOutputter xmlOut,
Object object)
Deprecated.
This method write the start- and endtag of your tag.
|
protected abstract void |
writeContent(XMLOutputter xmlOut,
Object object)
Deprecated.
Here you can write out the data to the given
XMLOutputter. |
public XMLTagWriter(XMLTagWriter parent)
XMLTagWriter.parent - the parent XMLTagWriter of this instancepublic XMLTagWriter(XMLTagWriter parent, boolean mandatory)
XMLTagWriter.parent - the parent XMLTagWriter of this instancemandatory - true if this is a mandatory tag, false otherwiseprotected boolean isInfoEnabled()
protected boolean isDebugEnabled()
protected boolean isWarnEnabled()
protected boolean isErrorEnabled()
protected void info(String message)
protected void debug(String message)
protected void warn(String message)
protected void error(String message)
protected abstract String getTagName()
protected abstract void writeContent(XMLOutputter xmlOut,
Object object)
throws IOException
XMLOutputter. This method will write the content between
the start- and endtag.xmlOut - the XMLOutputter to write toobject - the data object, it depends on the parent what kind of object you get hereIOExceptionprotected Map getAttributesMap(Object object)
Map.object - the data object, it depends on the parent what kind of object you get hereMappublic final void write(XMLOutputter xmlOut,
Object object)
writeContent to write
the data between these two tags.xmlOut - the XMLOutputter to write toobject - the data object, it depends on the parent what kind of object you get hereprotected XMLTagWriter getParent()
XMLTagWriterXMLTagWriter or null if no parent was declaredpublic void addSubTagWriter(XMLTagWriter tagWriter)
XMLTagWriter to this XMLTagWriter.tagWriter - the new XMLTagWriterpublic void addSubTagWriter(XMLTagWriter tagWriter, String type)
XMLTagWriter to this XMLTagWriter. If you have more
than one subtagwriter with the same tagname, than you have to specify a type for the tagwriter, so you can
indentify it in the getSubTagWriter-method.tagWriter - tagWriter the new XMLTagWritertype - the type of this XMLTagWriterpublic void addSubTagWriter(String tagName, Map typeMap)
XMLTagWriter to this XMLTagWriter. If you have more
than one subtagwriter with the same tagname, than you have to specify a type for the tagwriter, so you can
indentify it in the getSubTagWriter-method.tagName - name of the tagtypeMap - key of the Map is a type (String) and value is a XMLTagWriterpublic Collection getAllSubTagWriter()
XMLTagWriterXMLTagWriterpublic XMLTagWriter getSubTagWriter(String tagName)
XMLTagWriter with the given tagNametagName - name of the tagXMLTagWriter with the given tagNameIllegalArgumentException - if no XMLTagWriter was found for the given tag namepublic XMLTagWriter getSubTagWriter(String tagName, String type)
XMLTagWriter with the given tagNametagName - name of the tagtype - type of the XMLTagWriterXMLTagWriter with the given tagNameIllegalArgumentException - if no XMLTagWriter was found for the given tag name and typepublic boolean isMandatory()
Copyright © 2017 SAP SE. All Rights Reserved.