Package com.highdeal.pnr.hci
Class CheckLimitResult
java.lang.Object
com.highdeal.pnr.hci.CheckLimitResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
The operation result that is returned by the SAP CC system in response to a check limit operation request.
Several operations are provided in the
Several operations are provided in the
com.highdeal.cnd.message Java package that you can implement in your client application.
Operation Requests
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="checkLimitResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="transac" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="prop" type="xs:string"/>
<xs:attribute name="precision" type="xs:decimal"/>
<xs:attribute name="limit" type="xs:decimal"/>
<xs:attribute name="iterations" type="xs:integer"/>
<xs:attribute name="isMaxLimit" type="xs:boolean"/>
</xs:complexType>
</xs:element>
-
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.voidaddTransaction(Transaction transaction) Adds a transaction to the result.intGets the iteration numbergetLimit()Returns the limitGets 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 precisionReturns the name of the property that has been inversed; This method returnsnullif check limit has been done on a duration item.Gets the list of returnedtransactionsbooleanChecks if the limit is the maximumvoidmarshal(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.voidsetIterations(int iter) Sets the iteration numbervoidSets the limitvoidsetMaxLimit(boolean isMaxLimit) Sets the maximum limit flagvoidSets the precisionvoidsetPropertyName(String name) Sets the property name that has been inversed
-
Constructor Details
-
CheckLimitResult
public CheckLimitResult()Builds en empty check limit result
-
-
Method Details
-
getPropertyName
Returns the name of the property that has been inversed; This method returnsnullif check limit has been done on a duration item.- Returns:
- The property name that has been inversed
-
setPropertyName
Sets the property name that has been inversed- Parameters:
name- The property name that has been inversed
-
getLimit
Returns the limit- Returns:
- The limit
-
setLimit
Sets the limit- Parameters:
l- The limit
-
getPrecision
Gets the precision- Returns:
- The precision
-
setPrecision
Sets the precision- Parameters:
p- The precision
-
getIterations
public int getIterations()Gets the iteration number- Returns:
- The iteration number
-
setIterations
public void setIterations(int iter) Sets the iteration number- Parameters:
iter- The iteration number
-
isMaxLimit
public boolean isMaxLimit()Checks if the limit is the maximum- Returns:
- true if the limit is the maximum
-
setMaxLimit
public void setMaxLimit(boolean isMaxLimit) Sets the maximum limit flag- Parameters:
isMaxLimit- The maximum limit flag
-
getTransactions
Gets the list of returnedtransactions- Returns:
- The
transactionlist
-
getUnsynchronizedTransactions
-
addTransaction
Adds a transaction to the result.- Parameters:
transaction- the transaction to add to the result
-
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
-
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
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data 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
-