Package com.highdeal.bart.hci
Class AcquireCDRResult
java.lang.Object
com.highdeal.bart.hci.AcquireCDRResult
- All Implemented Interfaces:
com.highdeal.hci.OperationResult,XMLMarshallable
This class represents the result of the
Acquire CDR operation and
contains a sequence of CDRs which have been acquired by the connected SAP CC BART Server system.XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="acquireCDRResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="hasDuplicate" type="HasDuplicate"/>
<xs:attribute name="nbCDRNew" type="xs:string"/>
<xs:attribute name="nbCDRDuplicate" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="HasDuplicate">
<xs:restriction base="xs:string">
<xs:enumeration value="true"/>
<xs:enumeration value="false"/>
</xs:restriction>
</xs:simpleType>
-
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.getCDR()Gets the first CDR.getCDRs()Gets the list of CDRs; This method must be called by the client, if the current operation on CDRs must return a list of CDRs.longGets the number of duplicate CDRs for this acquition operation.longGets the number of new CDRs for this acquition operation.booleanGets the has duplicate status for this acquisition operation.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 Only).voidSets the list of CDRs.voidsetNbCDRDuplicate(long nbCDRDuplicate) Sets the number of duplicate CDRs for this acquition operation (Internal Use Only).voidsetNbCDRNew(long nbCDRNew) Sets the number of new CDRs for this acquition operation (Internal Use Only).
-
Constructor Details
-
AcquireCDRResult
public AcquireCDRResult()Builds an empty AcquireCDRResult.
-
-
Method Details
-
setCDRs
Sets the list of CDRs.- Parameters:
list- A vector ofCDRs
-
getCDRs
Gets the list of CDRs; This method must be called by the client, if the current operation on CDRs must return a list of CDRs.- Returns:
- A vector of
CDRs
-
getCDR
Gets the first CDR.- Returns:
- The first
CDR
-
setCDR
Sets the cdr (Internal Use Only).- Parameters:
cdr- TheCDR
-
hasDuplicate
public boolean hasDuplicate()Gets the has duplicate status for this acquisition operation.- Returns:
- true if at least one of the
CDRssubmitted is a duplicate.
-
getNbCDRDuplicate
public long getNbCDRDuplicate()Gets the number of duplicate CDRs for this acquition operation.- Returns:
- The number of duplicate CDRs for this acquition operation
-
setNbCDRDuplicate
public void setNbCDRDuplicate(long nbCDRDuplicate) Sets the number of duplicate CDRs for this acquition operation (Internal Use Only). param The number of duplicate CDRs for this acquition operation -
getNbCDRNew
public long getNbCDRNew()Gets the number of new CDRs for this acquition operation.- Returns:
- The number of new CDRs for this acquition operation
-
setNbCDRNew
public void setNbCDRNew(long nbCDRNew) Sets the number of new CDRs for this acquition operation (Internal Use Only). param The number of new CDRs for this acquition operation -
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
-