public class CheckLimitResult extends Object implements OperationResult
com.highdeal.cnd.message Java package that you can implement in your client application.
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 and Description |
|---|
CheckLimitResult()
Builds en empty check limit result
|
| 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 |
addTransaction(Transaction transaction)
Adds a transaction to the result.
|
int |
getIterations()
Gets the iteration number
|
BigDecimal |
getLimit()
Returns the limit
|
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. |
BigDecimal |
getPrecision()
Gets the precision
|
String |
getPropertyName()
Returns the name of the property that has been inversed; This
method returns
null if check limit has been done on a duration
item. |
Vector<Transaction> |
getTransactions()
Gets the list of returned
transactions |
List<Transaction> |
getUnsynchronizedTransactions() |
boolean |
isMaxLimit()
Checks if the limit is the maximum
|
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 |
setIterations(int iter)
Sets the iteration number
|
void |
setLimit(BigDecimal l)
Sets the limit
|
void |
setMaxLimit(boolean isMaxLimit)
Sets the maximum limit flag
|
void |
setPrecision(BigDecimal p)
Sets the precision
|
void |
setPropertyName(String name)
Sets the property name that has been inversed
|
public String getPropertyName()
null if check limit has been done on a duration
item.public void setPropertyName(String name)
name - The property name that has been inversedpublic BigDecimal getLimit()
public void setLimit(BigDecimal l)
l - The limitpublic BigDecimal getPrecision()
public void setPrecision(BigDecimal p)
p - The precisionpublic int getIterations()
public void setIterations(int iter)
iter - The iteration numberpublic boolean isMaxLimit()
public void setMaxLimit(boolean isMaxLimit)
isMaxLimit - The maximum limit flagpublic Vector<Transaction> getTransactions()
transactionstransaction listpublic List<Transaction> getUnsynchronizedTransactions()
public void addTransaction(Transaction transaction)
transaction - the transaction to add to the resultpublic String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic 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 addCharacterData(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