public class CreateCDROp
extends java.lang.Object
implements com.highdeal.hci.MessageOperation
AcquireCDROp.
InvalidCDRExceptionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="createCDR">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="mode" type="CreationModeType"/>
</xs:complexType>
</xs:element><xs:simpleType name="CreationModeType">
<xs:restriction base="xs:string">
<xs:enumeration value="create"/>
<xs:enumeration value="createAndDeduplicate"/>
<xs:enumeration value="createAndRejectDuplicate"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_AND_DEDUPLICATE_MODE
In this mode, status of duplicate CDR is set to duplicate.
|
static int |
CREATE_AND_REJECT_DUPLICATE_MODE
In this mode, duplicate CDR are rejected.
|
static int |
CREATE_MODE
In this mode, the CDR is created without de-duplication detection.
|
| Constructor and Description |
|---|
CreateCDROp()
Builds an empty operation.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
CDRModel |
getCDR()
Gets the CDR.
|
int |
getMode()
Gets the creation mode
|
java.lang.String |
getName()
Gets the name.
|
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 |
setCDR(CDRModel cdr)
Sets the CDR.
|
void |
setMode(int creationMode)
Sets the creation mode
|
public static final int CREATE_MODE
public static final int CREATE_AND_DEDUPLICATE_MODE
public static final int CREATE_AND_REJECT_DUPLICATE_MODE
public CreateCDROp()
public java.lang.String getName()
getName in interface com.highdeal.hci.MessageOperationpublic CDRModel getCDR()
public void setCDR(CDRModel cdr)
cdr - the CDRModel.public int getMode()
public void setMode(int creationMode)
creationMode - public 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