public class PurgeAllowancesResult extends Object implements OperationResult
Purge Allowances operation;
It contains an overall execution status (see PERFORMED_STATUS, #INCOMPLETE_STATUS, or #STOPPED_STATUS) and the total count of processed provider contracts.
Consider the Stop Purge Allowances operation
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="purgeAllowancesResult">
<xs:complexType>
<xs:attribute name="processedCount" type="xs:integer" use="required"/>
<xs:attribute name="processedFailed" type="xs:integer" use="required"/>
<xs:attribute name="visited" type="xs:integer" use="required"/>
<xs:attribute name="purged" type="xs:integer" use="required"/>
<xs:attribute name="cannotPurgeAfter" type="xs:date" use="required"/>
<xs:attribute name="purgeDate" type="xs:date" use="required"/>
<xs:attribute name="executionStatus" type="PurgeExcStatusType" use="required"/>
</xs:complexType>
</xs:element><xs:simpleType name="PurgeExcStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="performed"/> <!-- each rater instance has received the purge allowances order and each rater has performed its purge allowances -->
<xs:enumeration value="stopped"/> <!-- the global purge allowances process has been stopped by the user -->
<xs:enumeration value="incomplete"/> <!-- some rater instances did not confirm that they have received the purge allowances order from the updater -->
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
INCOMPLETE_STATUS
0: Constant for the overall execution status when the processing was incomplete
|
static String |
OPERATION_NAME
The XML tag name of this operation result: "purgeAllowancesResult"
|
static int |
PERFORMED_STATUS
1: Constant for the overall execution status when the processing was completed
|
static int |
STOPPED_STATUS
2: Constant for the overall execution status when the processing was stopped
|
| Constructor and Description |
|---|
PurgeAllowancesResult()
Builds an empty purge allowances 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. |
Date |
getCannotPurgeAfter() |
int |
getExecutionStatus()
Gets the execution status of the stop purge allowances operation.
|
String |
getExecutionStatusAsString()
Gets the execution status of the stop purge allowances operation as String.
|
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. |
int |
getProcessedCount()
Gets the total count of processed provider contracts.
|
int |
getProcessedFailed() |
int |
getPurged() |
Date |
getPurgeDate() |
int |
getVisited() |
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 |
setCannotPurgeAfter(Date cannotPurgeAfter) |
void |
setExecutionStatus(int val)
Sets the execution status of the purge allowances operation.
|
void |
setProcessedCount(int val) |
void |
setProcessedFailed(int failed) |
void |
setPurged(int purged) |
void |
setPurgeDate(Date purgeDate) |
void |
setVisited(int visited) |
public static final int INCOMPLETE_STATUS
public static final int PERFORMED_STATUS
public static final int STOPPED_STATUS
public static final String OPERATION_NAME
public PurgeAllowancesResult()
public int getExecutionStatus()
public String getExecutionStatusAsString()
public void setExecutionStatus(int val)
val - The new status valuepublic int getProcessedCount()
public void setProcessedCount(int val)
public int getVisited()
public int getPurged()
public int getProcessedFailed()
public void setVisited(int visited)
public void setPurged(int purged)
public void setProcessedFailed(int failed)
public Date getCannotPurgeAfter()
public void setCannotPurgeAfter(Date cannotPurgeAfter)
public 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 intopublic void setPurgeDate(Date purgeDate)
public Date getPurgeDate()