public class ModifyCDROp
extends java.lang.Object
implements com.highdeal.hci.MessageOperation
InvalidCDRExceptionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="modifyCDR">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="mode" type="ModifyCDRModeType"/>
</xs:complexType>
</xs:element><xs:simpleType name="ModifyCDRModeType">
<xs:restriction base="xs:string">
<xs:enumeration value="modify"/>
<xs:enumeration value="modifyAndDeduplicate"/>
<xs:enumeration value="modifyAndRejectDuplicate"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
MODIFY_AND_DEDUPLICATE_MODE
In this mode, the CDR is modified, and a de-duplication detection is performed.
|
static int |
MODIFY_AND_REJECT_DUPLICATE_MODE
In this mode, if the CDR is detected as duplicate, the CDR is not modified.
|
static int |
MODIFY_MODE
In this mode, the CDR is modified and no de-duplication detection is performed.
|
| Constructor and Description |
|---|
ModifyCDROp()
Modifies a CDR in database Default modification mode is
|
| 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 marsh)
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 modification 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 modificationMode)
This indicates whether a deduplicate process should be made when
modifying a CDR
|
public static final int MODIFY_MODE
public static final int MODIFY_AND_DEDUPLICATE_MODE
public static final int MODIFY_AND_REJECT_DUPLICATE_MODE
public ModifyCDROp()
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 modificationMode)
modificationMode - 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 marsh)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childmarsh - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into