Package com.highdeal.contract.hci
Class ChargingContractItemRevisionAccountAssignmentModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.contract.hci.ChargingContractItemRevisionAccountAssignmentModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
An Account Assignment is a link between an account reference and the concrete
Account to use in the charging process.
Provisioning system must give back in Charging Contract Item all Account Assignments defined in the Charge Plan Class with their account id.
A ChargingContractItemAccountAssignmentModel is composed of:
- A
name, which must be the same name as the one defined in the Charge Plan Class. It uniquely identifies an Account Assignment in a Charging Contract Item. - A
, which must be the same type as the one defined in the Charge Plan Class. It defines if the account reference is a prepaid or postpaid account.type - A
accountId, which is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract. This account is used as the target of the account reference.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="ChargingContractItemRevisionAccountAssignmentType"> <xs:attribute name="name" type="xs:string"/> <xs:attribute name="accountId" type="xs:string"/> </xs:complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets theaccountIdof the Account Assignment..getName()Gets thenamewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.Gets the XML tag name of the HCI model.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAccountId(String accountId) Sets theaccountIdof the Account Assignment.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets thenamewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of the <ttAccount Assignment XML representation- See Also:
-
-
Constructor Details
-
ChargingContractItemRevisionAccountAssignmentModel
public ChargingContractItemRevisionAccountAssignmentModel()
-
-
Method Details
-
getName
Gets thenamewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.- Returns:
- the
namewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.
-
setName
Sets thenamewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.- Parameters:
name- thenamewhich uniquely identifies theChargingContractItemAccountAssignmentModelin the Charging Contract Item.
-
getAccountId
Gets theaccountIdof the Account Assignment..- Returns:
- the
accountIdwhich is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract.
-
setAccountId
Sets theaccountIdof the Account Assignment.- Parameters:
accountId- theaccountIdwhich is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract.
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Returns:
- The XML tag name
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Parameters:
output- TheXML outputto marshal the child objects into
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-