public class SubscriptionCounterSnapshotModel extends Object implements XMLMarshallable
counter snapshots recorded for a subscription.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>
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_NAME
The XML name of the model: subscriptionCounterSnapshot
|
| Constructor and Description |
|---|
SubscriptionCounterSnapshotModel()
Builds an empty
SubscriptionCounterSnapshotModel object |
SubscriptionCounterSnapshotModel(String subscriptionCode)
Builds a
SubscriptionCounterSnapshotModel object with the code of a subscription |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
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. |
void |
addCounterSnapshot(CounterSnapshotModel counterSnapshot)
Adds a
counter snapshot to this object |
List<CounterSnapshotModel> |
getCounterSnapshots()
Gets the list of
counter snapshots contained in this object |
String |
getSubscriptionCode()
Gets the code of the
subscription associated to this object |
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 |
setCounterSnapshots(List<CounterSnapshotModel> counterSnapshots)
Sets the list of
counter snapshots contained in this object |
void |
setSubscriptionCode(String subscriptionCode)
Sets the code of the
subscription associated to this object |
public static final String MODEL_NAME
public SubscriptionCounterSnapshotModel()
SubscriptionCounterSnapshotModel objectpublic SubscriptionCounterSnapshotModel(String subscriptionCode)
SubscriptionCounterSnapshotModel object with the code of a subscriptionsubscriptionCode - The code of a subscriptionpublic String getSubscriptionCode()
subscription associated to this objectsubscription associated to this objectpublic void setSubscriptionCode(String subscriptionCode)
subscription associated to this objectsubscriptionCode - The code of the subscription associated to this objectpublic List<CounterSnapshotModel> getCounterSnapshots()
counter snapshots contained in this objectcounter snapshots to set in this objectpublic void setCounterSnapshots(List<CounterSnapshotModel> counterSnapshots)
counter snapshots contained in this objectcounterSnapshots - The list of counter snapshots contained in this objectpublic void addCounterSnapshot(CounterSnapshotModel counterSnapshot)
counter snapshot to this objectcounterSnapshot - The counter snapshot to add to this objectpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into