public class UsageChargeModel extends ChargeModel
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="usageCharge">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="chargeableItemName" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
UsageChargeModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
List<QualifiedChargeableItemDescription> |
availableCINames()
Gets available chargeable item names.
|
boolean |
checkValidity()
Returns true if the component is valid.
|
String |
getChargeableItemName()
Returns the name of the chargeable item.
|
RatingContextDescription |
getContext(ContextualNode child)
Gets the context description for the specified child;
The context description contains all the context properties.
|
RatingContextDescription |
inheritedContext()
Gets the inherited context;
The context description contains all the context properties.
|
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 |
setChargeableItemName(String chargeableItemName)
Sets the name of the chargeable item.
|
getMaxChildCount, getRateComponent, setRateComponentaddCharacterData, getChildAt, getChildCount, getChildren, getDescription, getName, getParent, isRemoveChildAllowed, isSetChildAllowed, remove, removeChild, setChild, setChildren, setDescription, setName, setParentpublic String getChargeableItemName()
public void setChargeableItemName(String chargeableItemName)
chargeableItemName - Returns the name of the chargeable item.public RatingContextDescription getContext(ContextualNode child)
ContextualNodegetContext in interface ContextualNodegetContext in class RateComponentModelchild - The child nodepublic List<QualifiedChargeableItemDescription> availableCINames()
QualifiedChargeableItemDescription containing all chargeable item names.public RatingContextDescription inheritedContext()
ContextualNodeinheritedContext in interface ContextualNodeinheritedContext in class RateComponentModelpublic boolean checkValidity()
RateComponentModelcheckValidity in class ChargeModelpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class RateComponentModelatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallableaddChild in class RateComponentModeltagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateComponentModeloutput - The XML output to marshal the object into