public class ChargedItemMappingModel extends ChargedItemMapping<ChargedItemMappingEntryModel> implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItemMapping">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargedItemMappingEntry" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="chargedItemClassName" type="xs:string" use="required"/>
<xs:attribute name="chargedItemAggregationPolicyCode" type="xs:string" use="optional"/>
<xs:attribute name="reportingScope" type="ReportingScopeType" use="optional"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="ReportingScopeType">
<xs:restriction base="xs:string">
<xs:enumeration value="chargedItem"/>
<xs:enumeration value="session"/>
</xs:restriction>
</xs:simpleType>
ChargedItemMapping.ReportingScope| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODEL_NAME
The XML tag of the element.
|
| Constructor and Description |
|---|
ChargedItemMappingModel()
Builds an empty charged item mapping.
|
ChargedItemMappingModel(java.lang.String citcName)
Builds a charged item mapping from a charged item class name.
|
| 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. |
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.
|
getChargedItemAggregationPolicyCode, getCitcName, getReportingScope, setChargedItemAggregationPolicyCode, setCitcName, setReportingScopepublic static final java.lang.String MODEL_NAME
public ChargedItemMappingModel()
public ChargedItemMappingModel(java.lang.String citcName)
citcName - the citcName of the charged item class.public 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into