public class SubsReflect extends java.lang.Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subsReflect">
<xs:complexType>
<xs:sequence>
<xs:element name="detail" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="subscriberAccount" type="xs:string"/>
<xs:attribute name="serviceProvider" type="xs:string"/>
<xs:attribute name="subscriptionCode" type="xs:string"/>
<xs:attribute name="exportDate" type="xs:dateTime"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
SubsReflect()
Builds an empty subscription reflect.
|
SubsReflect(java.lang.String subscriberAccountReference,
java.lang.String subscriberAccountCode,
java.lang.String serviceProvider,
java.lang.String subscriptionCode,
java.util.Date exportDate,
java.util.List<SubsReflectDetail> details)
Initializes a subscription reflect.
|
SubsReflect(SubscriberAccountModel suacModel,
java.lang.String subscriptionCode,
java.util.Date exportDate,
java.util.List<SubsReflectDetail> details)
Initializes a subscription reflect.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
addDetail(java.lang.String name,
java.lang.Object value)
Add a subscription detail to the subscription reflect
|
void |
addDetail(java.lang.String name,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
Add a charge detail to the subscription reflect.
|
java.util.Date |
getExportDate()
Gets the export date.
|
java.lang.String |
getServiceProvider()
Returns the service provider of the subscription reflect.
|
java.lang.String |
getSubscriberAccountCode()
Returns the subscriber account code of the subscription reflect.
|
java.lang.String |
getSubscriberAccountReference()
Returns the subscriber account reference of the subscription reflect.
|
java.lang.String |
getSubscriptionCode()
Gets the subscription code of the subscription reflect.
|
java.util.List<SubsReflectDetail> |
getSubsReflectDetails()
Returns the list of
subsReflect |
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 |
setExportDate(java.util.Date exportDate)
Sets the date.
|
void |
setServiceProvider(java.lang.String serviceProvider)
Sets the service provider of the subscription reflect.
|
void |
setSubscriberAccountCode(java.lang.String subscriberAccountCode)
Sets the subscriber account code of the subscription reflect.
|
void |
setSubscriberAccountReference(java.lang.String subscriberAccountReference)
Sets the subscriber account reference of the subscription reflect.
|
void |
setSubscriptionCode(java.lang.String code)
Sets the subscription code.
|
public SubsReflect()
public SubsReflect(java.lang.String subscriberAccountReference,
java.lang.String subscriberAccountCode,
java.lang.String serviceProvider,
java.lang.String subscriptionCode,
java.util.Date exportDate,
java.util.List<SubsReflectDetail> details)
subscriberAccountReference - the reference of the subscriber account owner of the charged accountsubscriberAccountCode - the code of the subscriber account owner of the charged accountserviceProvider - the service provider of the subscriber account owner of the charged accountsubscriptionCode - the exported subscription codeexportDate - the date when the subscription is exporteddetails - a list of SubsReflectDetailpublic SubsReflect(SubscriberAccountModel suacModel, java.lang.String subscriptionCode, java.util.Date exportDate, java.util.List<SubsReflectDetail> details)
suacModel - the subscriber account owner of the charged accountsubscriptionCode - the exported subscription codeexportDate - the date when the subscription is exporteddetails - a list of SubsReflectDetailpublic java.lang.String getSubscriptionCode()
public void setSubscriptionCode(java.lang.String code)
code - the subscription code of the reflect.public java.util.Date getExportDate()
public void setExportDate(java.util.Date exportDate)
exportDate - the subscription export date.public java.lang.String getSubscriberAccountCode()
public void setSubscriberAccountCode(java.lang.String subscriberAccountCode)
subscriberAccountCode - the subscriber account code of the subscription reflect.public java.lang.String getSubscriberAccountReference()
public void setSubscriberAccountReference(java.lang.String subscriberAccountReference)
subscriberAccountReference - the subscriber account reference of the subscription reflect.public java.lang.String getServiceProvider()
public void setServiceProvider(java.lang.String serviceProvider)
serviceProvider - the serviceProvider to setpublic java.util.List<SubsReflectDetail> getSubsReflectDetails()
subsReflectpublic void addDetail(java.lang.String name,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
name - the name of the detailvalue - the Object value of the detail.caCode - the charge activation code of the detail.caOid - the charge activation id of the detail.public void addDetail(java.lang.String name,
java.lang.Object value)
name - the name of the detail.value - the Object value of the detail.public void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into