Namespace: OpenEdge.DataAdmin.Core
Class
JSONWriter
Parent classes:
Inherits: OpenEdge.DataAdmin.Core.DataAdminWriter
Implements: OpenEdge.DataAdmin.IDataAdminExporter

/* Copyright (c) 2011 by progress Software Corporation.
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
Purpose:Write IDataAdminSerializable in JSON format
to file, longchar, memptr or stream,
Author(s):hdaniels
Created:Mon Aug 16 20:18:09 EDT 2010
Notes:This is often used by the various ExportTree and
Export methods of the objects, but not always




Method Summary
Options Name Purpose
OpenEdge.DataAdmin.Binding.IContextTree CreateContextTree ()
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
handleError (Error)
OpenEdge.DataAdmin.Binding.IContextTree Load (IDataAdminSerializable, character)
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
CHARACTER ToString ()
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
OpenEdge.DataAdmin.Binding.IContextTree Write (IDataAdminSerializable, character)
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
WriteToFile (IDataAdminSerializable, character, character) /** WriteToFile @param Serializable IDataAdminSerializable is implemented by all entities and collections @param FileName for output (typically .json) @param Mode All, Object - Unsupported, List - Unsupported collection names */
WriteToFile (IDataAdminSerializable, character, character, IPageRequest)
LONGCHAR WriteToLongchar (IDataAdminSerializable, character) /** WriteToLongchar @returns longchar with exported data @param Serializable IDataAdminSerializable is implemented by all entities and collections @param Mode All, Object - Unsupported, List - Unsupported collection names */
WriteToMemptr (IDataAdminSerializable, memptr, character) /** WriteToMemptr @param Serializable IDataAdminSerializable is implemented by all entities and collections @param Memptr for output @param Mode All, Object - Unsupported, List - Unsupported collection names */
WriteToStream (IDataAdminSerializable, handle, character) /** WriteToStream @param Serializable IDataAdminSerializable is implemented by all entities and collections @param Stream-handle for output @param Mode All, Object - Unsupported, List - Unsupported collection names */

Constructor Summary
Options Name Purpose
JSONWriter ()

Property Summary
Options Name Purpose
LOGICAL Formatted


Method Detail
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree CreateContextTree ()

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Returns OpenEdge.DataAdmin.Binding.IContextTree
Top

PROTECTED handleError (Error)

Parameters:
e Progress.Lang.Error
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree Load (IDataAdminSerializable, character)

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcMode CHARACTER
Returns OpenEdge.DataAdmin.Binding.IContextTree
Top

PUBLIC CHARACTER ToString ()

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Returns CHARACTER
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree Write (IDataAdminSerializable, character)

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcMode CHARACTER
Returns OpenEdge.DataAdmin.Binding.IContextTree
Top

PUBLIC WriteToFile (IDataAdminSerializable, character, character)

Purpose: WriteToFile
collection names
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
IDataAdminSerializable is implemented by all entities and collections
pcFile CHARACTER
pccollection CHARACTER
Top

PUBLIC WriteToFile (IDataAdminSerializable, character, character, IPageRequest)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcFile CHARACTER
pccollection CHARACTER
pageReq OpenEdge.DataAdmin.Rest.IPageRequest
Top

PUBLIC LONGCHAR WriteToLongchar (IDataAdminSerializable, character)

Purpose: WriteToLongchar
collection names
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
IDataAdminSerializable is implemented by all entities and collections
pccollection CHARACTER
Returns LONGCHAR
s longchar with exported data
Top

PUBLIC WriteToMemptr (IDataAdminSerializable, memptr, character)

Purpose: WriteToMemptr
collection names
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
IDataAdminSerializable is implemented by all entities and collections
m MEMPTR
pccollection CHARACTER
Top

PUBLIC WriteToStream (IDataAdminSerializable, handle, character)

Purpose: WriteToStream
collection names
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
IDataAdminSerializable is implemented by all entities and collections
phStream HANDLE
pccollection CHARACTER


Constructor Detail
Top

PUBLIC JSONWriter ()



Property Detail
Top

PUBLIC LOGICAL Formatted

Returns LOGICAL


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0