public static class ChargedItem.ChargedItemField extends java.lang.Object implements XMLMarshallable
charged item generated by the SAP CC system during the charging process.
It contains:
ChargedItemThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItemField">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="type" type="ChargedItemFieldType" use="required" />
<xs:attribute name="value" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this object: "chargedItemField".
|
| Constructor and Description |
|---|
ChargedItemField()
Builds an uninitialized charged item field.
|
ChargedItemField(java.lang.String name,
ChargedItem.ChargedItemFieldType type,
java.lang.Object value)
Builds a charged item field with a name, a
type and a value. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getName()
Gets the name of the field.
|
ChargedItem.ChargedItemFieldType |
getType()
Gets the
type of the field. |
java.lang.Object |
getValue()
Gets the value of the field.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setName(java.lang.String name)
Sets the name of the field.
|
void |
setType(ChargedItem.ChargedItemFieldType type)
Sets the
type of the field. |
void |
setValue(java.lang.Object value)
Sets the value of the field.
|
public static final java.lang.String TAG_NAME
public ChargedItemField()
public ChargedItemField(java.lang.String name,
ChargedItem.ChargedItemFieldType type,
java.lang.Object value)
type and a value.name - The name of the charged item fieldtype - The data type of the charged item fieldvalue - The value of the charged item fieldpublic java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the charged item fieldpublic ChargedItem.ChargedItemFieldType getType()
type of the field.type of the fieldpublic void setType(ChargedItem.ChargedItemFieldType type)
type of the field.type - The type of the fieldpublic java.lang.Object getValue()
type of the field.public void setValue(java.lang.Object value)
type of the field.value - The value of the charged item fieldpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into