Namespace: Consultingwerk
Class 
DeserializationFactory Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.IDeserializationFactory

File:DeserializationFactory
Purpose:Default IDeserializationFactory implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Aug 25 00:03:15 CEST 2012



Top Method Summary
Options Name Purpose
+ Consultingwerk.ISerializable DeserializeInstance (longchar) Deserializes a LONGCHAR representation of an object to a new instance
# Consultingwerk.ISerializable DeserializeNativeJson (longchar) Deserializes a LONGCHAR representation of an ABL native serializable object to a new instance
# CHARACTER GetClassNameFromNode (handle) Returns the ABL Class name that should be used to serialize from an XML Document (Consultingwerk.XmlSerializable).


Method Detail
Top

PUBLIC Consultingwerk.ISerializable DeserializeInstance (longchar)

Purpose: Deserializes a LONGCHAR representation of an object to a new
instance
Notes: Supports XML and JSON Serialized objects

Parameters:
plcSerializable LONGCHAR
The serialized representation to be deserialized
Returns Consultingwerk.ISerializable
The LONGCHAR representation of the ISerializable objects data
Top

PROTECTED Consultingwerk.ISerializable DeserializeNativeJson (longchar)

Purpose: Deserializes a LONGCHAR representation of an ABL native serializable
object to a new instance
Notes: Supports XML and JSON Serialized objects

Parameters:
plcSerializable LONGCHAR
The serialized representation to be deserialized
Returns Consultingwerk.ISerializable
The LONGCHAR representation of the ISerializable objects data
Top

PROTECTED CHARACTER GetClassNameFromNode (handle)

Purpose: Returns the ABL Class name that should be used to serialize from
an XML Document (Consultingwerk.XmlSerializable).
Notes: When the node does not contain the SerializedType attribute it may
need to be required to overload this method in a derived class and
provide a custom logic to return the class name base on the root node
name

Parameters:
phRootNode HANDLE
The root document element
Returns CHARACTER
The class name to be used for the deserialization


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:51:05