Platform SDK Java 8.5 API Reference

com.genesyslab.platform.configuration.protocol.runtime.channel
Class ObjectSerializer

java.lang.Object
  extended by com.genesyslab.platform.configuration.protocol.runtime.channel.ObjectSerializer
All Implemented Interfaces:
com.genesyslab.platform.commons.connection.impl.EncodingSupport, com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport
Direct Known Subclasses:
ObjectSerializerV6, ObjectSerializerV7

public abstract class ObjectSerializer
extends java.lang.Object
implements com.genesyslab.platform.commons.connection.impl.EncodingSupport, com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport


Nested Class Summary
protected static class ObjectSerializer.DocumentWalker
           
 
Field Summary
protected  AesUtil aes
           
protected static java.lang.String BINARY_PAIR
           
protected static java.lang.String DBID
           
protected  boolean deltaCleanUp
           
protected  javax.xml.parsers.DocumentBuilder docCreator
           
protected static java.lang.String INTEGER_PAIR
           
protected static java.lang.String INTID
           
protected static java.lang.String KEY
           
protected  CfgMetadata metadata
           
protected static java.lang.String PASSWORD
           
protected  boolean reversed
           
protected static java.lang.String STRING_PAIR
           
protected  java.lang.String stringsEncoding
           
protected static java.lang.String VALUE
           
 
Fields inherited from interface com.genesyslab.platform.commons.connection.impl.EncodingSupport
DEFAULT_CHARSET, DEFAULT_ENCODING, UTF8_CHARSET, UTF8_ENCODING
 
Constructor Summary
protected ObjectSerializer(CfgMetadata metadata, AesUtil aes, boolean deltaCleanUp)
           
 
Method Summary
protected  org.w3c.dom.Element createElement(org.w3c.dom.Document document, java.lang.String elementName)
           
protected  java.lang.String createTruncatedLogTrace(java.lang.String strData)
           
protected  org.w3c.dom.Element createXmlElement(CfgDescriptionAttribute attr, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element createXmlElement(CfgDescriptionAttribute attributeDescription, TokenReader tokenReader, org.w3c.dom.Document document, boolean isAddedObjlistElement)
           
abstract  java.lang.String deserialize(java.lang.String objectTypeName, org.w3c.dom.Document document)
           
protected abstract  boolean deserializeDBIdList(java.lang.String name, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected abstract  boolean deserializeIntList(java.lang.String name, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected abstract  boolean deserializeKVList(java.lang.String name, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected abstract  boolean deserializeObjList(CfgDescriptionAttributeReference attr, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected abstract  boolean deserializePObject(CfgDescriptionAttributeReference attr, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected abstract  boolean deserializePrimitive(java.lang.String name, char delimiter, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
protected  java.lang.String getDecrypted(java.lang.String val)
           
protected  java.lang.String getEncrypted(java.lang.String val)
           
 CfgMetadata getMetadata()
           
 void reverse()
           
abstract  org.w3c.dom.Document serialize(java.lang.String objectTypeName, java.lang.String cfgStr)
           
protected  org.w3c.dom.Element serializeDBIDList(java.lang.String name, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializeIntList(java.lang.String name, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializeKVList(java.lang.String name, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializeKVListPair(TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializeKVPair(TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializeObjList(CfgDescriptionAttributeReference attr, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializePObject(CfgDescriptionAttributeReference attr, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializePObject(CfgDescriptionAttributeReference attr, TokenReader tokenReader, org.w3c.dom.Document document, boolean isAddedObjlistElement)
           
protected  org.w3c.dom.Element serializePrimitive(java.lang.String name, TokenReader tokenReader, org.w3c.dom.Document document)
           
protected  org.w3c.dom.Element serializePrimitive(java.lang.String name, TokenReader tokenReader, org.w3c.dom.Document document, boolean isAddedObjlistElement)
           
protected  org.w3c.dom.Element serializeStrList(CfgDescriptionAttributeReference attr, TokenReader tokenReader, org.w3c.dom.Document document)
           
 void setStringAttributesEncoding(java.lang.String strEncoding)
           
protected abstract  boolean writeCfgString(CfgDescriptionAttribute attr, ObjectSerializer.DocumentWalker navigator, java.io.StringWriter cfgWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

protected static final java.lang.String KEY
See Also:
Constant Field Values

VALUE

protected static final java.lang.String VALUE
See Also:
Constant Field Values

BINARY_PAIR

protected static final java.lang.String BINARY_PAIR
See Also:
Constant Field Values

STRING_PAIR

protected static final java.lang.String STRING_PAIR
See Also:
Constant Field Values

INTEGER_PAIR

protected static final java.lang.String INTEGER_PAIR
See Also:
Constant Field Values

PASSWORD

protected static final java.lang.String PASSWORD
See Also:
Constant Field Values

DBID

protected static final java.lang.String DBID
See Also:
Constant Field Values

INTID

protected static final java.lang.String INTID
See Also:
Constant Field Values

aes

protected AesUtil aes

metadata

protected CfgMetadata metadata

deltaCleanUp

protected boolean deltaCleanUp

stringsEncoding

protected java.lang.String stringsEncoding

reversed

protected boolean reversed

docCreator

protected javax.xml.parsers.DocumentBuilder docCreator
Constructor Detail

ObjectSerializer

protected ObjectSerializer(CfgMetadata metadata,
                           AesUtil aes,
                           boolean deltaCleanUp)
Method Detail

reverse

public void reverse()
Specified by:
reverse in interface com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport

getMetadata

public CfgMetadata getMetadata()

setStringAttributesEncoding

public void setStringAttributesEncoding(java.lang.String strEncoding)
Specified by:
setStringAttributesEncoding in interface com.genesyslab.platform.commons.connection.impl.EncodingSupport

serialize

public abstract org.w3c.dom.Document serialize(java.lang.String objectTypeName,
                                               java.lang.String cfgStr)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserialize

public abstract java.lang.String deserialize(java.lang.String objectTypeName,
                                             org.w3c.dom.Document document)
                                      throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeKVPair

protected org.w3c.dom.Element serializeKVPair(TokenReader tokenReader,
                                              org.w3c.dom.Document document)
                                       throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createElement

protected org.w3c.dom.Element createElement(org.w3c.dom.Document document,
                                            java.lang.String elementName)

serializeKVListPair

protected org.w3c.dom.Element serializeKVListPair(TokenReader tokenReader,
                                                  org.w3c.dom.Document document)
                                           throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createXmlElement

protected org.w3c.dom.Element createXmlElement(CfgDescriptionAttribute attr,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createXmlElement

protected org.w3c.dom.Element createXmlElement(CfgDescriptionAttribute attributeDescription,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document,
                                               boolean isAddedObjlistElement)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePrimitive

protected org.w3c.dom.Element serializePrimitive(java.lang.String name,
                                                 TokenReader tokenReader,
                                                 org.w3c.dom.Document document)
                                          throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePrimitive

protected org.w3c.dom.Element serializePrimitive(java.lang.String name,
                                                 TokenReader tokenReader,
                                                 org.w3c.dom.Document document,
                                                 boolean isAddedObjlistElement)
                                          throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeIntList

protected org.w3c.dom.Element serializeIntList(java.lang.String name,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document)

serializeDBIDList

protected org.w3c.dom.Element serializeDBIDList(java.lang.String name,
                                                TokenReader tokenReader,
                                                org.w3c.dom.Document document)

serializeObjList

protected org.w3c.dom.Element serializeObjList(CfgDescriptionAttributeReference attr,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePObject

protected org.w3c.dom.Element serializePObject(CfgDescriptionAttributeReference attr,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePObject

protected org.w3c.dom.Element serializePObject(CfgDescriptionAttributeReference attr,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document,
                                               boolean isAddedObjlistElement)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeKVList

protected org.w3c.dom.Element serializeKVList(java.lang.String name,
                                              TokenReader tokenReader,
                                              org.w3c.dom.Document document)
                                       throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeStrList

protected org.w3c.dom.Element serializeStrList(CfgDescriptionAttributeReference attr,
                                               TokenReader tokenReader,
                                               org.w3c.dom.Document document)

deserializeKVList

protected abstract boolean deserializeKVList(java.lang.String name,
                                             ObjectSerializer.DocumentWalker navigator,
                                             java.io.StringWriter cfgWriter)
                                      throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeIntList

protected abstract boolean deserializeIntList(java.lang.String name,
                                              ObjectSerializer.DocumentWalker navigator,
                                              java.io.StringWriter cfgWriter)
                                       throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeDBIdList

protected abstract boolean deserializeDBIdList(java.lang.String name,
                                               ObjectSerializer.DocumentWalker navigator,
                                               java.io.StringWriter cfgWriter)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeObjList

protected abstract boolean deserializeObjList(CfgDescriptionAttributeReference attr,
                                              ObjectSerializer.DocumentWalker navigator,
                                              java.io.StringWriter cfgWriter)
                                       throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializePObject

protected abstract boolean deserializePObject(CfgDescriptionAttributeReference attr,
                                              ObjectSerializer.DocumentWalker navigator,
                                              java.io.StringWriter cfgWriter)
                                       throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializePrimitive

protected abstract boolean deserializePrimitive(java.lang.String name,
                                                char delimiter,
                                                ObjectSerializer.DocumentWalker navigator,
                                                java.io.StringWriter cfgWriter)
                                         throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

writeCfgString

protected abstract boolean writeCfgString(CfgDescriptionAttribute attr,
                                          ObjectSerializer.DocumentWalker navigator,
                                          java.io.StringWriter cfgWriter)
                                   throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

getEncrypted

protected java.lang.String getEncrypted(java.lang.String val)
                                 throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

getDecrypted

protected java.lang.String getDecrypted(java.lang.String val)
                                 throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createTruncatedLogTrace

protected java.lang.String createTruncatedLogTrace(java.lang.String strData)

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.