Package com.highdeal.bart.hci
Class CDROperationResult
java.lang.Object
com.highdeal.bart.hci.CDROperationResult
- All Implemented Interfaces:
com.highdeal.hci.OperationResult,XMLMarshallable
- Direct Known Subclasses:
CDRListModel,CreateCDRResult,DeduplicateCDRResult,ModifyCDRResult,RateCDRResult
This class is a generic abstract class for the results returned by operations on CDR.
-
Constructor Summary
ConstructorsConstructorDescriptionCDROperationResult(String resultTagName, boolean singleton) Builds an CDROperationResult without CDR. -
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.getCDR()Gets the cdr.getCDRs()Gets the cdr list.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.voidSets the cdr(internal use).voidSets the cdrs list.
-
Constructor Details
-
CDROperationResult
Builds an CDROperationResult without CDR.- Parameters:
resultTagName- the operation result name.singleton- is attrueif there is only one result(cdr).
-
-
Method Details
-
setCDRs
Sets the cdrs list.- Parameters:
list- a vector ofCDRModel.
-
getCDRs
Gets the cdr list. This method must be called by the client, if the current operation on cdrs must return a list of cdrs.- Returns:
- a vector of
CDRModel.
-
getCDR
Gets the cdr. This method must be called by the client, if the current operation on cdrs must return a single cdr.- Returns:
- the
CDRModel.
-
setCDR
Sets the cdr(internal use).- Parameters:
cdr- thecdrModel.
-
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
-
getOperandReference
- Specified by:
getOperandReferencein interfacecom.highdeal.hci.OperationResult
-