Package com.highdeal.pnr.hci
Class SubscriptionCounterSnapshotModel
java.lang.Object
com.highdeal.pnr.hci.SubscriptionCounterSnapshotModel
- All Implemented Interfaces:
XMLMarshallable
This class represents a set of
counter snapshots recorded for a subscription.XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriptionCounterSnapshot">
<xs:complexType>
<xs:sequence>
<xs:element ref="counterSnapshot" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="subscriptionCode" type="xs:string" />
</xs:complexType>
</xs:element>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe XML name of the model: subscriptionCounterSnapshot -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an emptySubscriptionCounterSnapshotModelobjectSubscriptionCounterSnapshotModel(String subscriptionCode) Builds aSubscriptionCounterSnapshotModelobject with the code of asubscription -
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.voidaddCounterSnapshot(CounterSnapshotModel counterSnapshot) Adds acounter snapshotto this objectGets the list ofcounter snapshotscontained in this objectGets the code of thesubscriptionassociated to this objectvoidmarshal(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.voidsetCounterSnapshots(List<CounterSnapshotModel> counterSnapshots) Sets the list ofcounter snapshotscontained in this objectvoidsetSubscriptionCode(String subscriptionCode) Sets the code of thesubscriptionassociated to this object
-
Field Details
-
MODEL_NAME
The XML name of the model: subscriptionCounterSnapshot- See Also:
-
-
Constructor Details
-
SubscriptionCounterSnapshotModel
public SubscriptionCounterSnapshotModel()Builds an emptySubscriptionCounterSnapshotModelobject -
SubscriptionCounterSnapshotModel
Builds aSubscriptionCounterSnapshotModelobject with the code of asubscription- Parameters:
subscriptionCode- The code of asubscription
-
-
Method Details
-
getSubscriptionCode
Gets the code of thesubscriptionassociated to this object- Returns:
- The code of the
subscriptionassociated to this object
-
setSubscriptionCode
Sets the code of thesubscriptionassociated to this object- Parameters:
subscriptionCode- The code of thesubscriptionassociated to this object
-
getCounterSnapshots
Gets the list ofcounter snapshotscontained in this object- Returns:
- The list of
counter snapshotsto set in this object
-
setCounterSnapshots
Sets the list ofcounter snapshotscontained in this object- Parameters:
counterSnapshots- The list ofcounter snapshotscontained in this object
-
addCounterSnapshot
Adds acounter snapshotto this object- Parameters:
counterSnapshot- Thecounter snapshotto add to this object
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- 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.- Specified by:
addChildin interfaceXMLMarshallable- 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.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
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
-