public class AcquireCDROp
extends java.lang.Object
implements com.highdeal.hci.MessageOperation
CDRs as part of a started acquisition session.
It is one of the three operations of the acquisition process. See AcquisitionSessionModel for more information.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="acquireCDR">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="sessionID" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
AcquireCDROp()
Builds an empty operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCDR(CDRModel cdr)
Adds a CDR to the list.
|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
AcquisitionSessionModel |
getAcquisitionSession()
Deprecated.
Use getAcquisitionSessionID() instead
|
java.lang.Long |
getAcquisitionSessionID()
Gets the acquisition session unique ID.
|
CDRModel |
getCDR()
Gets the first element of CDR list.
|
java.util.Vector<CDRModel> |
getCDRs()
Gets the CDRs list.
|
java.lang.String |
getName()
Gets the name.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAcquisitionSession(AcquisitionSessionModel asm)
Sets the acquisition session; Use this method or
setAcquisitionSessionID(Long sessionID)
to set the session these CDRs will be linked to. |
void |
setAcquisitionSessionID(java.lang.Long sessionID)
Sets the acquisition session unique ID; Use this method or
setAcquisitionSession(AcquisitionSessionModel asm)
to set the session these CDRs will be linked to. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setCDR(CDRModel cdr)
Sets the CDR.
|
void |
setCDRs(java.util.Vector<CDRModel> cdrs)
Sets the CDRs list.
|
public java.lang.String getName()
getName in interface com.highdeal.hci.MessageOperationpublic CDRModel getCDR()
CDR contained by the operationpublic void setCDRs(java.util.Vector<CDRModel> cdrs)
cdrs - A vector of CDRs@Deprecated public AcquisitionSessionModel getAcquisitionSession()
public java.lang.Long getAcquisitionSessionID()
public void setAcquisitionSession(AcquisitionSessionModel asm)
setAcquisitionSessionID(Long sessionID)
to set the session these CDRs will be linked to.asm - The acquisition sessionpublic void setAcquisitionSessionID(java.lang.Long sessionID)
setAcquisitionSession(AcquisitionSessionModel asm)
to set the session these CDRs will be linked to.sessionID - The acquisition session unique IDpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into