public class StartRateResult extends java.lang.Object implements OperationResult
StartRateOp operation.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="startRateResult">
<xs:complexType>
<xs:sequence>
<xs:element name="transacSetToCleanup" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="transacSetToConfirm" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="transacSetToReserve" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="amountToConfirm" type="xs:string"/>
<xs:attribute name="amountToReserve" type="xs:string"/>
<xs:attribute name="transactionSetID" type="xs:long"/>
<xs:attribute name="limit" type="xs:decimal"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
StartRateResult()
Constructs an empty start session result.
|
| 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. |
Money |
getAmountToConfirm()
Gets the amount to confirm.
|
Money |
getAmountToReserve()
Gets the amount to reserve.
|
java.math.BigDecimal |
getLimit()
Gets the limit of the reservation in case of best effort one.
|
java.lang.String |
getName() |
java.lang.String |
getOperandReference()
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 is
null. |
java.util.List<TransactionSet> |
getTransacSetsToCleanup()
Gets the list of transactions sets to cleanup.
|
java.util.List<TransactionSet> |
getTransacSetsToConfirm()
Gets the list of transactions sets to confirm.
|
java.util.List<TransactionSet> |
getTransacSetsToReserve()
Gets the list of transactions sets to reserve.
|
java.lang.Long |
getTransactionSetID()
Gets the transaction set owner ID.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAmountToConfirm(Money amount)
Sets the amount to confirm.
|
void |
setAmountToReserve(Money amount)
Sets the amount to reserve.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setLimit(java.math.BigDecimal limit)
Sets the limit of the reservation in case of best effort one.
|
void |
setOperandReference(java.lang.String operandReference)
Sets the reference of the operand.
|
void |
setTransactionSetID(java.lang.Long transactionSetID)
Sets the transaction set owner ID.
|
public StartRateResult()
public java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic void setOperandReference(java.lang.String operandReference)
operandReference - the reference of the operand.public java.lang.String getName()
public java.lang.Long getTransactionSetID()
public void setTransactionSetID(java.lang.Long transactionSetID)
transactionSetID - the transaction set owner ID.public Money getAmountToConfirm()
public void setAmountToConfirm(Money amount)
amount - the amount to confirm.public Money getAmountToReserve()
public void setAmountToReserve(Money amount)
amount - the amount to reserve.public java.util.List<TransactionSet> getTransacSetsToCleanup()
public java.util.List<TransactionSet> getTransacSetsToConfirm()
public java.util.List<TransactionSet> getTransacSetsToReserve()
public java.math.BigDecimal getLimit()
public void setLimit(java.math.BigDecimal limit)
limit - the limit value.public 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into