com.highdeal.pnr.hci
Class SubscriptionCounterSnapshotModel

java.lang.Object
  extended by com.highdeal.pnr.hci.SubscriptionCounterSnapshotModel
All Implemented Interfaces:
XMLMarshallable

public class SubscriptionCounterSnapshotModel
extends java.lang.Object
implements 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
static java.lang.String MODEL_NAME
          The XML name of the model: subscriptionCounterSnapshot
 
Constructor Summary
SubscriptionCounterSnapshotModel()
          Builds an empty SubscriptionCounterSnapshotModel object
SubscriptionCounterSnapshotModel(java.lang.String subscriptionCode)
          Builds a SubscriptionCounterSnapshotModel object with the code of a subscription
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.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
 java.util.List<CounterSnapshotModel> getCounterSnapshots()
          Gets the list of counter snapshots contained in this object
 java.lang.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(java.util.List<CounterSnapshotModel> counterSnapshots)
          Sets the list of counter snapshots contained in this object
 void setSubscriptionCode(java.lang.String subscriptionCode)
          Sets the code of the subscription associated to this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_NAME

public static final java.lang.String MODEL_NAME
The XML name of the model: subscriptionCounterSnapshot

See Also:
Constant Field Values
Constructor Detail

SubscriptionCounterSnapshotModel

public SubscriptionCounterSnapshotModel()
Builds an empty SubscriptionCounterSnapshotModel object


SubscriptionCounterSnapshotModel

public SubscriptionCounterSnapshotModel(java.lang.String subscriptionCode)
Builds a SubscriptionCounterSnapshotModel object with the code of a subscription

Parameters:
subscriptionCode - The code of a subscription
Method Detail

getSubscriptionCode

public java.lang.String getSubscriptionCode()
Gets the code of the subscription associated to this object

Returns:
The code of the subscription associated to this object

setSubscriptionCode

public void setSubscriptionCode(java.lang.String subscriptionCode)
Sets the code of the subscription associated to this object

Parameters:
subscriptionCode - The code of the subscription associated to this object

getCounterSnapshots

public java.util.List<CounterSnapshotModel> getCounterSnapshots()
Gets the list of counter snapshots contained in this object

Returns:
The list of counter snapshots to set in this object

setCounterSnapshots

public void setCounterSnapshots(java.util.List<CounterSnapshotModel> counterSnapshots)
Sets the list of counter snapshots contained in this object

Parameters:
counterSnapshots - The list of counter snapshots contained in this object

addCounterSnapshot

public void addCounterSnapshot(CounterSnapshotModel counterSnapshot)
Adds a counter snapshot to this object

Parameters:
counterSnapshot - The counter snapshot to add to this object

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - The name of tag for the child
child - The child to be added

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)