|
SAP Convergent Charging
Java and XML APIs (BART) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLOutputter
This Java interface provides the necessary methods to output XML documents in an event-based manner; Consider
the Java classes that implement this interface.
Use the following customizing sequence when outputting XML:
startTag(String) addAttribute(String, String) and the other similar methods to add an attributeaddCharacterData(String) output endTag(String) Caution
Your implementation must apply the sequence order.
| 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 |
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 |
startTag(java.lang.String tag)
Starts a XML tag. |
| Method Detail |
|---|
void startTag(java.lang.String tag)
tag - The name of the XML tag to start with
void addAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attributevalue - The text value of the attribute
void addDecimalAttribute(java.lang.String name,
java.math.BigDecimal value)
name - The name of the attributevalue - The numerical value of the attribute
void addDateAttribute(java.lang.String name,
java.util.Date value)
name - The name of the attributevalue - The date value of the attribute
void addDateTimeAttribute(java.lang.String name,
java.util.Date value)
name - The name of the attributevalue - The value of the attribute
void addBooleanAttribute(java.lang.String name,
boolean value)
name - The name of the attributevalue - The value of the attribute
void addIntegerAttribute(java.lang.String name,
java.lang.Integer value)
name - The name of the attributevalue - The integer value of the attribute
void addLongAttribute(java.lang.String name,
java.lang.Long value)
name - The name of the attributevalue - The value of the attribute
void addBigIntegerAttribute(java.lang.String name,
java.math.BigInteger value)
name - The name of the attributevalue - The value of the attributevoid addCharacterData(java.lang.String data)
data - The character data to add for the current tagvoid endTag(java.lang.String tag)
tag - The name of the XML tag to close
void marshal(java.lang.String tagName,
IXMLMarshallable child)
The sequence is:
IXMLMarshallable.marshalAttributes(XMLOutputter)IXMLMarshallable.marshalChildren(XMLOutputter)
Note
This method is taking care of handling a null child.
tagName - The name of child XML tagchild - The child itself, that must be marshalled
|
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 | ||||||||