com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
XmlDocumentCodecV6
, XmlDocumentCodecV7
public abstract class XmlDocumentCodec
extends java.lang.Object
implements com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String |
BRIEF |
|
protected static java.lang.String |
CONF_ACL |
|
protected static java.lang.String |
CONF_ID |
|
protected static java.lang.String |
CONF_LOCALE |
|
protected static int |
CONF_OBJ_ATTR_ID |
|
protected java.lang.String |
confObject |
|
protected static java.lang.String |
DELTA |
|
protected static int |
DELTA_INDEX |
|
protected Message |
message |
|
protected static int |
OBJ_TYPE_ATTR_ID |
|
protected java.lang.Integer |
objectType |
|
protected static int |
SCHEMA_INFO_ATTR_ID |
|
protected ObjectSerializer |
serializer |
|
protected static java.lang.String |
XML |
Constructor | Description |
---|---|
XmlDocumentCodec() |
Modifier and Type | Method | Description |
---|---|---|
void |
appendLogValue(java.lang.StringBuffer buf,
java.lang.Object customTypeObject,
boolean truncate,
boolean hide) |
Appends value of the custom-type object to the buffer.
|
protected org.w3c.dom.Document |
asDocument(java.lang.Object customTypeObject) |
|
protected int |
asInt(java.lang.String id) |
|
java.lang.Object |
decodeFromXml(javax.xml.transform.Source attributeElement,
AttributeDescription attributeDescription) |
Deserializes custom-type object from xml representation.
|
void |
encodeToXml(java.lang.Object customTypeObject,
javax.xml.transform.Result attributeElement) |
Serializes custom-type object to xml.
|
java.lang.String |
getLogType() |
Returns type signature for attribute record written to log.
|
void |
setMessage(Message message) |
Sets message this codec works on.
|
protected static final int CONF_OBJ_ATTR_ID
protected static final int OBJ_TYPE_ATTR_ID
protected static final int SCHEMA_INFO_ATTR_ID
protected static final int DELTA_INDEX
protected static final java.lang.String DELTA
protected static final java.lang.String BRIEF
protected static final java.lang.String XML
protected static final java.lang.String CONF_ID
protected static final java.lang.String CONF_ACL
protected static final java.lang.String CONF_LOCALE
protected java.lang.Integer objectType
protected java.lang.String confObject
protected Message message
protected ObjectSerializer serializer
public java.lang.String getLogType()
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
LogTypes
class to return standard values.getLogType
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
public void appendLogValue(java.lang.StringBuffer buf, java.lang.Object customTypeObject, boolean truncate, boolean hide) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
appendLogValue
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
buf
- buffer to append datacustomTypeObject
- value of custom-type objecttruncate
- whether long value should be truncatedhide
- whether value should be hiddencom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some codec problems occurredpublic void encodeToXml(java.lang.Object customTypeObject, javax.xml.transform.Result attributeElement) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
encodeToXml
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
customTypeObject
- object to serializeattributeElement
- xml attribute to store the data incom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some codec problems occurredpublic java.lang.Object decodeFromXml(javax.xml.transform.Source attributeElement, AttributeDescription attributeDescription) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
decodeFromXml
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
attributeElement
- xml attribute to restore the data fromattributeDescription
- attribute description objectcom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if there is problems with xml datapublic void setMessage(Message message)
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
setMessage
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
message
- protocol specific dataprotected int asInt(java.lang.String id) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
protected org.w3c.dom.Document asDocument(java.lang.Object customTypeObject) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.