Package com.highdeal.pnr.hci
Class UnlockSubscriptionResult
java.lang.Object
com.highdeal.pnr.hci.UnlockSubscriptionResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
An unlock subscription result indicates that targeted subscription has been correctly unlocked.
Operation Request
UnlockSubscriptionOp XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="unlockSubscriptionResult">
<xs:complexType>
<xs:attribute name="subscriptionCount" type="xs:integer"/>
<xs:attribute name="reratingOpCode" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.getName()Gets the name of the operation.Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.Gets the rerating operation code of the subscriptions that must be unlocked.intGets the number of subscriptions unlocked.voidmarshal(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.voidsetReratingOpCode(String reratingOpCode) Sets the rerating operation code originally generated by Transactive server of the subscriptions that must be unlocked.voidsetSubscriptionCode(String subscriptionCode) Sets the subscription code of the subscription that must be unlocked.voidsetSubscriptionCount(int subscriptionCount) Sets the number of subscriptions unlocked.
-
Field Details
-
OPERATION_NAME
- See Also:
-
-
Constructor Details
-
UnlockSubscriptionResult
public UnlockSubscriptionResult()Creates an empty result.
-
-
Method Details
-
getName
Gets the name of the operation.- Returns:
- "unlockSubscriptionResult"
-
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
- The operand reference of the operation result
-
setSubscriptionCount
public void setSubscriptionCount(int subscriptionCount) Sets the number of subscriptions unlocked.- Parameters:
subscriptionCount- the number of subscriptions unlocked
-
getSubscriptionCount
public int getSubscriptionCount()Gets the number of subscriptions unlocked.- Returns:
- the number of subscriptions unlocked
-
setReratingOpCode
Sets the rerating operation code originally generated by Transactive server of the subscriptions that must be unlocked.- Parameters:
reratingOpCode- rerating operation code
-
setSubscriptionCode
Sets the subscription code of the subscription that must be unlocked.- Parameters:
subscriptionCode- the subscription code
-
getReratingOpCode
Gets the rerating operation code of the subscriptions that must be unlocked.- Returns:
- the rerating operation code
-
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
-
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
-
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
-