TRODLToWSDL

Overview

This class is used for converting TRODLLibrary to wsdl format

Location

 

constructor Create (TRODLLibrary, string, Boolean, string)  overload override

Creates a new instance with a supplied values.

constructor Create(const aLibrary: TRODLLibrary; const aTargetEntity: string; aFlattenUsedRODLs: Boolean; aOutputFileName: string)

Parameters:

  • aLibrary:
  • aTargetEntity:
  • aFlattenUsedRODLs:
  • aOutputFileName:

constructor Create (string, string, Boolean, string)  overload override

Creates a new instance with a supplied values.

constructor Create(const aLibraryFile: string; const aTargetEntity: string; aFlattenUsedRODLs: Boolean; aOutputFileName: string)

Parameters:

  • aLibraryFile:
  • aTargetEntity:
  • aFlattenUsedRODLs:
  • aOutputFileName:

AddExternal (TRODLEntity)  protected overload

procedure AddExternal(aNode: TRODLEntity)

Parameters:

  • aNode:

AddExternal (string, string)  protected overload

procedure AddExternal(const aNs: string; const aUrl: string)

Parameters:

  • aNs:
  • aUrl:

AsBytes    (declared in TRODLConverter)

Contains the result of the conversion.

property AsBytes: TBytes read

Buffer    (declared in TRODLConverter)

Contains the result of the conversion.

property Buffer: TStrings read

ContainsServiceGroup  protected    (declared in TRODLConverter)

function ContainsServiceGroup(aEntity: TRODLEntity): Boolean

Parameters:

  • aEntity:

Convert    (declared in TRODLConverter)

Calls the IntConvert function that converts the library (if aTargetEntity is not defined) or the specified service (if aTargetEntity is defined) to the specified format. If the aLibrary is not defined, it generates an "Invalid library" error message. If the aTargetEntity is not valid, it generates an "Invalid TargetEntity "%s"" error message.

procedure Convert(const aLibrary: TRODLLibrary; const aTargetEntity: string)

Parameters:

  • aLibrary: Library with the RODL file
  • aTargetEntity: Specified service in the aLibrary

DocumentLiteralWrappedNaming

property DocumentLiteralWrappedNaming: Boolean read write

ExcludePrivateServices    (declared in TRODLConverter)

property ExcludePrivateServices: Boolean read write

ExcludeServiceGroupAttribute    (declared in TRODLConverter)

property ExcludeServiceGroupAttribute: Boolean read write

ExternalTypesAsReferences

property ExternalTypesAsReferences: Boolean read write

FlattenUsedRODLs  protected    (declared in TRODLConverter)

property FlattenUsedRODLs: Boolean read

GetFormat  override

Returns current format

class function GetFormat: string

GetTargetFileName  virtual    (declared in TRODLConverter)

Virtual function that returns the result file name of the converted RODL file in the ancestor classes. The aLibrary and the aTargetEntity are used as parts of the result file name.

class function GetTargetFileName(const aLibrary: TRODLLibrary; const aTargetEntity: string): string

Parameters:

  • aLibrary: Part of the result file name
  • aTargetEntity: Part of the result file name

isFlatten  protected    (declared in TRODLConverter)

function isFlatten(aEntity: TRODLEntity): Boolean

Parameters:

  • aEntity:

Location

property Location: string read write

OutputFileName  protected    (declared in TRODLConverter)

property OutputFileName: string read

ServiceGroup    (declared in TRODLConverter)

Allows to get/set Service Groups

property ServiceGroup: string read write

ShowClientId

property ShowClientId: Boolean read write

TargetEntity    (declared in TRODLConverter)

The name of the TRODLService service that should be converted to the specified format. This property is used when you need to convert the specified service only, not all services from your RODL file.

property TargetEntity: string read

TargetNamespace

property TargetNamespace: string read write

TargetXsd

property TargetXsd: string read write

UseDocument

property UseDocument: Boolean read write

UseHexBinary

property UseHexBinary: Boolean read write

UseLiteral

property UseLiteral: Boolean read write

ValidateTargetEntity  protected virtual    (declared in TRODLConverter)

Finds the aTargetEntity service in the aLibrary. Returns true when the aTargetEntity service is found in the aLibrary. Otherwise returns false.

function ValidateTargetEntity(const aLibrary: TRODLLibrary; const aTargetEntity: string): Boolean

Parameters:

  • aLibrary: Library with the RODL file
  • aTargetEntity: Specified service in the aLibrary

Write (ROUTF8String, Integer)  overload    (declared in TRODLConverter)

Adds the string someText with an Identation count of spaces before the string to the Buffer.

procedure Write(const someText: ROUTF8String; Indentation: Integer)

Parameters:

  • someText: Specified string
  • Indentation: Count of spaces before someText

WriteEmptyLine    (declared in TRODLConverter)

Adds an empty line to the Buffer.

procedure WriteEmptyLine

WriteLines    (declared in TRODLConverter)

Adds the string someText to the Buffer.

procedure WriteLines(const someText: ROUTF8String)

Parameters:

  • someText: Specified string

 

AsBytes    (declared in TRODLConverter)

Contains the result of the conversion.

property AsBytes: TBytes read

Buffer    (declared in TRODLConverter)

Contains the result of the conversion.

property Buffer: TStrings read

DocumentLiteralWrappedNaming

property DocumentLiteralWrappedNaming: Boolean read write

ExcludePrivateServices    (declared in TRODLConverter)

property ExcludePrivateServices: Boolean read write

ExcludeServiceGroupAttribute    (declared in TRODLConverter)

property ExcludeServiceGroupAttribute: Boolean read write

ExternalTypesAsReferences

property ExternalTypesAsReferences: Boolean read write

FlattenUsedRODLs  protected    (declared in TRODLConverter)

property FlattenUsedRODLs: Boolean read

Location

property Location: string read write

OutputFileName  protected    (declared in TRODLConverter)

property OutputFileName: string read

ServiceGroup    (declared in TRODLConverter)

Allows to get/set Service Groups

property ServiceGroup: string read write

ShowClientId

property ShowClientId: Boolean read write

TargetEntity    (declared in TRODLConverter)

The name of the TRODLService service that should be converted to the specified format. This property is used when you need to convert the specified service only, not all services from your RODL file.

property TargetEntity: string read

TargetNamespace

property TargetNamespace: string read write

TargetXsd

property TargetXsd: string read write

UseDocument

property UseDocument: Boolean read write

UseHexBinary

property UseHexBinary: Boolean read write

UseLiteral

property UseLiteral: Boolean read write

 

GetFormat  override

Returns current format

class function GetFormat: string

GetTargetFileName  virtual    (declared in TRODLConverter)

Virtual function that returns the result file name of the converted RODL file in the ancestor classes. The aLibrary and the aTargetEntity are used as parts of the result file name.

class function GetTargetFileName(const aLibrary: TRODLLibrary; const aTargetEntity: string): string

Parameters:

  • aLibrary: Part of the result file name
  • aTargetEntity: Part of the result file name

 

constructor Create (TRODLLibrary, string, Boolean, string)  overload override

Creates a new instance with a supplied values.

constructor Create(const aLibrary: TRODLLibrary; const aTargetEntity: string; aFlattenUsedRODLs: Boolean; aOutputFileName: string)

Parameters:

  • aLibrary:
  • aTargetEntity:
  • aFlattenUsedRODLs:
  • aOutputFileName:

constructor Create (string, string, Boolean, string)  overload override

Creates a new instance with a supplied values.

constructor Create(const aLibraryFile: string; const aTargetEntity: string; aFlattenUsedRODLs: Boolean; aOutputFileName: string)

Parameters:

  • aLibraryFile:
  • aTargetEntity:
  • aFlattenUsedRODLs:
  • aOutputFileName:

AddExternal (TRODLEntity)  protected overload

procedure AddExternal(aNode: TRODLEntity)

Parameters:

  • aNode:

AddExternal (string, string)  protected overload

procedure AddExternal(const aNs: string; const aUrl: string)

Parameters:

  • aNs:
  • aUrl:

ContainsServiceGroup  protected    (declared in TRODLConverter)

function ContainsServiceGroup(aEntity: TRODLEntity): Boolean

Parameters:

  • aEntity:

Convert    (declared in TRODLConverter)

Calls the IntConvert function that converts the library (if aTargetEntity is not defined) or the specified service (if aTargetEntity is defined) to the specified format. If the aLibrary is not defined, it generates an "Invalid library" error message. If the aTargetEntity is not valid, it generates an "Invalid TargetEntity "%s"" error message.

procedure Convert(const aLibrary: TRODLLibrary; const aTargetEntity: string)

Parameters:

  • aLibrary: Library with the RODL file
  • aTargetEntity: Specified service in the aLibrary

isFlatten  protected    (declared in TRODLConverter)

function isFlatten(aEntity: TRODLEntity): Boolean

Parameters:

  • aEntity:

ValidateTargetEntity  protected virtual    (declared in TRODLConverter)

Finds the aTargetEntity service in the aLibrary. Returns true when the aTargetEntity service is found in the aLibrary. Otherwise returns false.

function ValidateTargetEntity(const aLibrary: TRODLLibrary; const aTargetEntity: string): Boolean

Parameters:

  • aLibrary: Library with the RODL file
  • aTargetEntity: Specified service in the aLibrary

Write (ROUTF8String, Integer)  overload    (declared in TRODLConverter)

Adds the string someText with an Identation count of spaces before the string to the Buffer.

procedure Write(const someText: ROUTF8String; Indentation: Integer)

Parameters:

  • someText: Specified string
  • Indentation: Count of spaces before someText

WriteEmptyLine    (declared in TRODLConverter)

Adds an empty line to the Buffer.

procedure WriteEmptyLine

WriteLines    (declared in TRODLConverter)

Adds the string someText to the Buffer.

procedure WriteLines(const someText: ROUTF8String)

Parameters:

  • someText: Specified string