SAP CC 1.0
API 4.2 (Core)

com.highdeal.hci
Interface XMLOutputter

All Known Implementing Classes:
XMLOutputterWriter

public interface XMLOutputter

Interface to output XML document in an event-based manner. When outputting XML, the methods MUST be called in this order:


Method Summary
 void addAttribute(java.lang.String name, java.lang.String value)
          Adds an attribute of type string to the current tag.
 void addBigIntegerAttribute(java.lang.String name, java.math.BigInteger value)
          Adds an attribute of type big integer to the current tag.
 void addBooleanAttribute(java.lang.String name, boolean value)
          Adds an attribute of type boolean to the current tag.
 void addCharacterData(java.lang.String data)
          Adds character data for the current tag.
 void addDateAttribute(java.lang.String name, java.util.Date value)
          Adds an attribute of type date to the current 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 time to the current tag, datetimes 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 string to the current tag.
 void addIntegerAttribute(java.lang.String name, java.lang.Integer value)
          Adds an attribute of type integer to the current tag.
 void addLongAttribute(java.lang.String name, java.lang.Long value)
          Adds an attribute of type long to the current tag.
 void endTag(java.lang.String tag)
          Ends the tag.
 void startTag(java.lang.String tag)
          Starts a XML tag.
 

Method Detail

startTag

void startTag(java.lang.String tag)
Starts a XML tag.

Parameters:
tag - the name of the tag to start.

addAttribute

void addAttribute(java.lang.String name,
                  java.lang.String value)
Adds an attribute of type string to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addDecimalAttribute

void addDecimalAttribute(java.lang.String name,
                         java.math.BigDecimal value)
Adds an attribute of type string to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addDateAttribute

void addDateAttribute(java.lang.String name,
                      java.util.Date value)
Adds an attribute of type date to the current tag, dates are encoded using ISO 8601 format, that is: 'YYYY-MM-DD'.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addDateTimeAttribute

void addDateTimeAttribute(java.lang.String name,
                          java.util.Date value)
Adds an attribute of type date time to the current tag, datetimes are encoded using ISO 8601 format, that is: 'YYYY-MM-DDTHH:MM:SS.mmm'.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addBooleanAttribute

void addBooleanAttribute(java.lang.String name,
                         boolean value)
Adds an attribute of type boolean to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addIntegerAttribute

void addIntegerAttribute(java.lang.String name,
                         java.lang.Integer value)
Adds an attribute of type integer to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addLongAttribute

void addLongAttribute(java.lang.String name,
                      java.lang.Long value)
Adds an attribute of type long to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addBigIntegerAttribute

void addBigIntegerAttribute(java.lang.String name,
                            java.math.BigInteger value)
Adds an attribute of type big integer to the current tag.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

addCharacterData

void addCharacterData(java.lang.String data)
Adds character data for the current tag.

Parameters:
data - character data to add for the current tag.

endTag

void endTag(java.lang.String tag)
Ends the tag.

Parameters:
tag - the name of the tag to close.

SAP CC 1.0
API 4.2 (Core)


API Reference - July 2009

SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2

(c) Copyright 2009 SAP AG. All rights reserved.