Package com.highdeal.pnr.hci
Class AccessibleChargeModel
java.lang.Object
com.highdeal.pnr.hci.AccessibleChargeModel
- All Implemented Interfaces:
XMLMarshallable
This data model is used to facilitate the creation of
accesses and
defines an accessible charge as a master charge activation that relates to a price plan that includes
at least a usage rate.
An accessible charge is specified by:
- The identifier of the master charge activation (see
charge activation code) - The identifier of the subscription or the provider contract that includes this charge activation
A contractible object can be either a root Subscription or
a ChargingContract.
-
subscriptionCodeis thecodeof the contractible object when the contractible object is a Subscription is the code of the Subscription. -
chargingContractIdis thecodeof the contractible object when the contractible object is a Subscription is the code of the ChargingContract.
A master charge activation code is unique within a root Subscription or a ChargingContract. Thus an accessible charge represents one and only one charge activation.
An accessible charge is contained within an access, managed thanks to a chronology.
Note
A charge activation with dependent role cannot be directly accessed.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="accessibleCharge">
<xs:complexType>
<xs:attribute name="type" type="AccessibleChargeType" default="subscription"/>
<xs:attribute name="subscriptionCode" type="xs:string" />
<xs:attribute name="chargingContractId" type="xs:string" />
<xs:attribute name="chargeActivationCode" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty accessible charge.AccessibleChargeModel(String subscriptionCode, String chargeActivationCode) Constructs a full accessible charge. -
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 the code of the charge activation; This code is single within a subscription root.Gets the identifier of the ChargingContract referencing the ChargeActivation.Gets the code of the subscription root which contains the chargeActivation.getType()Gets the type of the object that the AccessibleCharge reference.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetChargeActivationCode(String chargeActivationCode) Sets the code of the charge activation.voidsetChargingContractId(String chargingContractId) Sets the identifier of the ChargingContract referencing the ChargeActivation.voidsetSubscriptionCode(String subscriptionCode) Sets the code of the subscription root which contains the chargeActivation.voidsetType(AccessibleChargeType type) Sets the type of the object that the AccessibleCharge reference.
-
Constructor Details
-
AccessibleChargeModel
public AccessibleChargeModel()Constructs an empty accessible charge. -
AccessibleChargeModel
Constructs a full accessible charge.- Parameters:
subscriptionCode- The linked subscription codechargeActivationCode- The linked charge activation code
-
-
Method Details
-
getChargeActivationCode
Gets the code of the charge activation; This code is single within a subscription root.- Returns:
- The code of the charge activation
- See Also:
-
setChargeActivationCode
Sets the code of the charge activation.- Parameters:
chargeActivationCode- The code of the charge activation- See Also:
-
getType
Gets the type of the object that the AccessibleCharge reference.- Returns:
- The type of the object that the AccessibleCharge reference
-
setType
Sets the type of the object that the AccessibleCharge reference.- Parameters:
type- The type of the object that the AccessibleCharge reference
-
getSubscriptionCode
Gets the code of the subscription root which contains the chargeActivation.- Returns:
- The code of the subscription
- See Also:
-
setSubscriptionCode
Sets the code of the subscription root which contains the chargeActivation.- Parameters:
subscriptionCode- The code of the subscription- See Also:
-
getChargingContractId
Gets the identifier of the ChargingContract referencing the ChargeActivation.- Returns:
- The identifier of the ChargingContract
- See Also:
-
ChargingContractModel.getId()
-
setChargingContractId
Sets the identifier of the ChargingContract referencing the ChargeActivation.- Parameters:
chargingContractId- The identifier of the ChargingContract- See Also:
-
ChargingContractModel.getId()
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-