public class UsageRateModel extends RateModel
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="usage">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="ciName" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_CI_NAME
Constant for any chargeable item.
|
static String |
TAG_NAME
The value of that constant is the XML tag name of the usage rate.
|
| Constructor and Description |
|---|
UsageRateModel() |
| Modifier and Type | Method and Description |
|---|---|
List<QualifiedChargeableItemDescription> |
availableCINames()
Gets available chargeable item names.
|
boolean |
checkValidity()
Returns true if the Usage Rate is valid.
|
String |
getChargeableItemName()
Gets the chargeable item name.
|
RatingContextDescription |
getContext(ContextualNode child)
Gets the context for the specified child.
|
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 name)
Sets the chargeable item name.
|
addCharacterData, addChild, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, marshalChildren, remove, setDescription, setName, setParent, setRateComponentpublic static final String TAG_NAME
public static final String ANY_CI_NAME
public void setChargeableItemName(String name)
name - the chargeable item name.public String getChargeableItemName()
public boolean checkValidity()
checkValidity in class RateModelpublic RatingContextDescription getContext(ContextualNode child)
child - the child nodepublic List<QualifiedChargeableItemDescription> availableCINames()
QualifiedChargeableItemDescription containing all chargeable item names.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class RateModelatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface IXMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateModeloutput - The XML output to marshal the object into