|
SAP Convergent Charging
Java and XML APIs (BART) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.hci.XMLOutputterWriter
public class XMLOutputterWriter
Implementation of an XMLOutputter using a writer.
| Constructor Summary | |
|---|---|
XMLOutputterWriter(java.io.Writer w)
Constructs an XML outputter from a writer. |
|
XMLOutputterWriter(java.io.Writer w,
boolean withXMLDeclaration)
Constructs an XML outputter from a writer. |
|
XMLOutputterWriter(java.io.Writer w,
boolean withXMLDeclaration,
java.lang.String encoding)
Constructs an XML outputter from a writer. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Adds an attribute of type string to the current XML tag. |
void |
addBigIntegerAttribute(java.lang.String name,
java.math.BigInteger value)
Adds an attribute of type big integer to the current XML tag. |
void |
addBooleanAttribute(java.lang.String name,
boolean value)
Adds an attribute of type boolean to the current XML tag. |
void |
addCharacterData(java.lang.String data)
Adds character data for the current XML tag. |
void |
addComment(java.lang.String... lines)
|
void |
addDateAttribute(java.lang.String name,
java.util.Date value)
Adds an attribute of type date to the current XML tag; Dates are encoded using ISO 8601 format, that is: 'YYYY-MM-DD'. |
void |
addDateTimeAttribute(java.lang.String name,
java.util.Date value)
Adds an attribute of type date and time to the current XML tag; Date and times are encoded using ISO 8601 format, that is: 'YYYY-MM-DDTHH:MM:SS.mmm'. |
void |
addDecimalAttribute(java.lang.String name,
java.math.BigDecimal value)
Adds an attribute of type decimal to the current XML tag. |
void |
addIntegerAttribute(java.lang.String name,
java.lang.Integer value)
Adds an attribute of type integer to the current XML tag. |
void |
addLongAttribute(java.lang.String name,
java.lang.Long value)
Adds an attribute of type long to the current XML tag. |
void |
endTag(java.lang.String tag)
Ends the XML tag. |
void |
marshal(java.lang.String tagName,
IXMLMarshallable child)
Marshals a node into this writer. |
void |
setIndent(boolean indent)
Sets to false if the result cannot be indented, otherwise sets to true. |
void |
startTag(java.lang.String tag)
Starts a XML tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLOutputterWriter(java.io.Writer w)
w - The writer to write XML in
public XMLOutputterWriter(java.io.Writer w,
boolean withXMLDeclaration)
w - The writer to write XML inwithXMLDeclaration - Specifies if the XML header must be written
public XMLOutputterWriter(java.io.Writer w,
boolean withXMLDeclaration,
java.lang.String encoding)
w - The writer to write XML inwithXMLDeclaration - Specifies if the XML header must be writtenencoding - The encoding to set in the XML header| Method Detail |
|---|
public void setIndent(boolean indent)
false if the result cannot be indented, otherwise sets to true.
indent - Sets to false if the result cannot be indented otherwise sets to true
public void marshal(java.lang.String tagName,
IXMLMarshallable child)
XMLOutputterThe sequence is:
IXMLMarshallable.marshalAttributes(XMLOutputter)IXMLMarshallable.marshalChildren(XMLOutputter)
Note
This method is taking care of handling a null child.
marshal in interface XMLOutputtertagName - The name of child XML tagchild - The child itself, that must be marshalledpublic void startTag(java.lang.String tag)
XMLOutputter
startTag in interface XMLOutputtertag - The name of the XML tag to start with
public void addAttribute(java.lang.String name,
java.lang.String value)
XMLOutputter
addAttribute in interface XMLOutputtername - The name of the attributevalue - The text value of the attribute
public void addDecimalAttribute(java.lang.String name,
java.math.BigDecimal value)
XMLOutputter
addDecimalAttribute in interface XMLOutputtername - The name of the attributevalue - The numerical value of the attribute
public void addDateTimeAttribute(java.lang.String name,
java.util.Date value)
XMLOutputter
addDateTimeAttribute in interface XMLOutputtername - The name of the attributevalue - The value of the attribute
public void addDateAttribute(java.lang.String name,
java.util.Date value)
XMLOutputter
addDateAttribute in interface XMLOutputtername - The name of the attributevalue - The date value of the attribute
public void addBooleanAttribute(java.lang.String name,
boolean value)
XMLOutputter
addBooleanAttribute in interface XMLOutputtername - The name of the attributevalue - The value of the attributepublic void addCharacterData(java.lang.String data)
XMLOutputter
addCharacterData in interface XMLOutputterdata - The character data to add for the current tagpublic void addComment(java.lang.String... lines)
public void endTag(java.lang.String tag)
XMLOutputter
endTag in interface XMLOutputtertag - The name of the XML tag to close
public void addIntegerAttribute(java.lang.String name,
java.lang.Integer value)
XMLOutputter
addIntegerAttribute in interface XMLOutputtername - The name of the attributevalue - The integer value of the attribute
public void addLongAttribute(java.lang.String name,
java.lang.Long value)
XMLOutputter
addLongAttribute in interface XMLOutputtername - The name of the attributevalue - The value of the attribute
public void addBigIntegerAttribute(java.lang.String name,
java.math.BigInteger value)
XMLOutputter
addBigIntegerAttribute in interface XMLOutputtername - The name of the attributevalue - The value of the attribute
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||