public class SubsReflect extends 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(String subscriberAccountReference,
String subscriberAccountCode,
String serviceProvider,
String subscriptionCode,
Date exportDate,
List<SubsReflectDetail> details)
Initializes a subscription reflect.
|
SubsReflect(SubscriberAccountModel suacModel,
String subscriptionCode,
Date exportDate,
List<SubsReflectDetail> details)
Initializes a subscription reflect.
|
| 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 |
addDetail(String name,
Object value)
Add a subscription detail to the subscription reflect
|
void |
addDetail(String name,
Object value,
String caCode,
Long caOid)
Add a charge detail to the subscription reflect.
|
Date |
getExportDate()
Gets the export date.
|
String |
getServiceProvider()
Returns the service provider of the subscription reflect.
|
String |
getSubscriberAccountCode()
Returns the subscriber account code of the subscription reflect.
|
String |
getSubscriberAccountReference()
Returns the subscriber account reference of the subscription reflect.
|
String |
getSubscriptionCode()
Gets the subscription code of the subscription reflect.
|
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(Date exportDate)
Sets the date.
|
void |
setServiceProvider(String serviceProvider)
Sets the service provider of the subscription reflect.
|
void |
setSubscriberAccountCode(String subscriberAccountCode)
Sets the subscriber account code of the subscription reflect.
|
void |
setSubscriberAccountReference(String subscriberAccountReference)
Sets the subscriber account reference of the subscription reflect.
|
void |
setSubscriptionCode(String code)
Sets the subscription code.
|
public SubsReflect()
public SubsReflect(String subscriberAccountReference, String subscriberAccountCode, String serviceProvider, String subscriptionCode, Date exportDate, 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, String subscriptionCode, Date exportDate, 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 String getSubscriptionCode()
public void setSubscriptionCode(String code)
code - the subscription code of the reflect.public Date getExportDate()
public void setExportDate(Date exportDate)
exportDate - the subscription export date.public String getSubscriberAccountCode()
public void setSubscriberAccountCode(String subscriberAccountCode)
subscriberAccountCode - the subscriber account code of the subscription reflect.public String getSubscriberAccountReference()
public void setSubscriberAccountReference(String subscriberAccountReference)
subscriberAccountReference - the subscriber account reference of the subscription reflect.public String getServiceProvider()
public void setServiceProvider(String serviceProvider)
serviceProvider - the serviceProvider to setpublic List<SubsReflectDetail> getSubsReflectDetails()
subsReflectpublic void addDetail(String name, Object value, String caCode, 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(String name, Object value)
name - the name of the detail.value - the Object value of the detail.public void addCharacterData(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(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