Namespace: Consultingwerk.Studio.SwaggerToAbl
Class 
SwaggerToAblHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

Purpose: Returns the properties JsonObject
Notes: Raises a qualified error message when properties is not available



Top Method Summary
Options Name Purpose
+ Progress.Json.ObjectModel.JsonObject GetJsonObject (JsonObject, character) Returns the properties JsonObject
+ Progress.Json.ObjectModel.JsonObject GetProperties (JsonObject, JsonObject) Returns the properties JsonObject
+ CHARACTER InvokeTemplate (character, ClassName, character[], JsonObject, SwaggerClientGeneratorParameter, ILoggingStream) Invokes an active template for a client
+ CHARACTER InvokeTemplate (character, ClassName, JsonObject, JsonObject, SwaggerSchemaTypeGeneratorParameter, ILoggingStream) Invokes an active template for a schema type
+ Progress.Json.ObjectModel.JsonObject ResolveRef (JsonObject, JsonObject) Resolves as $ref
+ CHARACTER ToAblDataType (character, character) Returns the ABL DataType based on type and format
+ CHARACTER ToAblDataType (character, character, character, JsonObject, JsonObject, ISwaggerBasePackageParameter) Returns the ABL DataType for the given properties of the JSON schema object


Method Detail
Top

PUBLIC Progress.Json.ObjectModel.JsonObject GetJsonObject (JsonObject, character)

Purpose: Returns the properties JsonObject
Notes: Raises a qualified error message when properties is not available

Parameters:
poSchema Progress.Json.ObjectModel.JsonObject
The JSON Object
pcPropertyName CHARACTER
The name of the property to return
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject
Top

PUBLIC Progress.Json.ObjectModel.JsonObject GetProperties (JsonObject, JsonObject)

Purpose: Returns the properties JsonObject
Notes: Raises a qualified error message when properties is not available

Parameters:
poSchema Progress.Json.ObjectModel.JsonObject
The Swagger Schema Object
poApiSpec Progress.Json.ObjectModel.JsonObject
The API specification
Returns Progress.Json.ObjectModel.JsonObject
The properties JsonObject
Top

PUBLIC CHARACTER InvokeTemplate (character, ClassName, character[], JsonObject, SwaggerClientGeneratorParameter, ILoggingStream)

Purpose: Invokes an active template for a client
Notes:

Parameters:
pcTemplateFile CHARACTER
The template file
poClassName Consultingwerk.ClassName
The class name
pcOperations CHARACTER
The list of operations
poApiSpec Progress.Json.ObjectModel.JsonObject
The API documentation object
poGeneratorParameter Consultingwerk.Studio.SwaggerToAbl.SwaggerClientGeneratorParameter
The Generator Parameter
poLoggingStream Consultingwerk.Util.LoggingStream.ILoggingStream
The Logging Stream
Returns CHARACTER
The generated file name
Top

PUBLIC CHARACTER InvokeTemplate (character, ClassName, JsonObject, JsonObject, SwaggerSchemaTypeGeneratorParameter, ILoggingStream)

Purpose: Invokes an active template for a schema type
Notes:

Parameters:
pcTemplateFile CHARACTER
The template file
poClassName Consultingwerk.ClassName
The class name
poSchema Progress.Json.ObjectModel.JsonObject
The Swagger Schema Object
poApiSpec Progress.Json.ObjectModel.JsonObject
The API documentation object
poGeneratorParameter Consultingwerk.Studio.SwaggerToAbl.SwaggerSchemaTypeGeneratorParameter
The Generator Parameter
poLoggingStream Consultingwerk.Util.LoggingStream.ILoggingStream
The Logging Stream
Returns CHARACTER
The generated file name
Top

PUBLIC Progress.Json.ObjectModel.JsonObject ResolveRef (JsonObject, JsonObject)

Purpose: Resolves as $ref
Notes:

Parameters:
poApiSpec Progress.Json.ObjectModel.JsonObject
The API documentation object
poProperty Progress.Json.ObjectModel.JsonObject
The JSON Object describing the current property
Returns Progress.Json.ObjectModel.JsonObject
The resolved $ref
Top

PUBLIC CHARACTER ToAblDataType (character, character)

Purpose: Returns the ABL DataType based on type and format
Notes:

Parameters:
pcType CHARACTER
The type of the property
pcFormat CHARACTER
The format of the property
Returns CHARACTER
The ABL DataType
Top

PUBLIC CHARACTER ToAblDataType (character, character, character, JsonObject, JsonObject, ISwaggerBasePackageParameter)

Purpose: Returns the ABL DataType for the given properties of the JSON schema object
Notes:

Parameters:
pcBasePackage CHARACTER
The base package for the API
pcClassName CHARACTER
The name of the referencing class
pcPropertyName CHARACTER
The name of the property
poSchema Progress.Json.ObjectModel.JsonObject
The JSON schema object
poApiSpec Progress.Json.ObjectModel.JsonObject
The API documentation object
poGeneratorParameter Consultingwerk.Studio.SwaggerToAbl.ISwaggerBasePackageParameter
The Generator Parameter (ISwaggerBasePackageParameter)
Returns CHARACTER
The ABL data type


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:23:21