C# Класс ConvertLib.Converter

Class used to convert WSDL files into generated Objective-C code.
Показать файл Открыть проект

Открытые методы

Метод Описание
Convert ( List &packages ) : DirectoryInfo

Converts the WSDL files to generated code in the output directory.

Convert ( List &packages, List &classes ) : DirectoryInfo

Converts the WSDL files to generated code in the output directory.

Convert ( ) : List

Converts the WSDL files to generated code in the output directory.

ConvertToPackage ( WsdlFile file ) : XmlDocument

Converts the WSDL file to a package XML document.

ConvertToPackages ( ) : List

Converts all WSDL files to package XML documents.

CreateArchive ( ) : FileInfo

Creates and archive of the generated code.

CreateArchive ( HttpContext context ) : FileInfo

Creates and archive of the generated code.

CreateArchive ( HttpContext context, string packageName ) : FileInfo

Creates and archive of the generated code.

GetPackageName ( List packages ) : string

Generates a package name.

GetPackageName ( string namespaceUri ) : string

Generates a package name.

MakeUUID ( long id ) : string

Creates a UUID for generating PBX files.

RemoveArchives ( System.TimeSpan olderThan ) : int

Removes old archives.

SaveIndexToDirectory ( XmlDocument document, DirectoryInfo directory ) : void

Saves the index XML file to the directory.

SavePackageToDirectory ( XmlDocument document, DirectoryInfo directory ) : string

Saves the package XML file to the directory.

Transform ( XmlDocument document ) : XmlDocument

Transforms the XmlDocument.

UpdateProjectFile ( DirectoryInfo directory ) : void

Updates the project file with the new code files.

Приватные методы

Метод Описание
copyDirectory ( String source, String destination, System.Boolean overwrite ) : void

Copies one directory to another.

Описание методов

Convert() публичный Метод

Converts the WSDL files to generated code in the output directory.
public Convert ( List &packages ) : DirectoryInfo
packages List Outputs the list of packages.
Результат System.IO.DirectoryInfo

Convert() публичный Метод

Converts the WSDL files to generated code in the output directory.
public Convert ( List &packages, List &classes ) : DirectoryInfo
packages List Outputs the list of packages.
classes List Outputs the list of classes.
Результат System.IO.DirectoryInfo

Convert() публичный Метод

Converts the WSDL files to generated code in the output directory.
public Convert ( ) : List
Результат List

ConvertToPackage() публичный Метод

Converts the WSDL file to a package XML document.
public ConvertToPackage ( WsdlFile file ) : XmlDocument
file WsdlFile /// The to be converted. ///
Результат System.Xml.XmlDocument

ConvertToPackages() публичный Метод

Converts all WSDL files to package XML documents.
public ConvertToPackages ( ) : List
Результат List

CreateArchive() публичный Метод

Creates and archive of the generated code.
public CreateArchive ( ) : FileInfo
Результат System.IO.FileInfo

CreateArchive() публичный Метод

Creates and archive of the generated code.
public CreateArchive ( HttpContext context ) : FileInfo
context System.Web.HttpContext /// The used to pass the ZIP file to the response. ///
Результат System.IO.FileInfo

CreateArchive() публичный Метод

Creates and archive of the generated code.
public CreateArchive ( HttpContext context, string packageName ) : FileInfo
context System.Web.HttpContext /// The used to pass the ZIP file to the response. ///
packageName string The name of the package.
Результат System.IO.FileInfo

GetPackageName() публичный статический Метод

Generates a package name.
public static GetPackageName ( List packages ) : string
packages List The list of packages used to generate the name.
Результат string

GetPackageName() публичный статический Метод

Generates a package name.
public static GetPackageName ( string namespaceUri ) : string
namespaceUri string The URI of the namespace used to generate the name.
Результат string

MakeUUID() публичный статический Метод

Creates a UUID for generating PBX files.
public static MakeUUID ( long id ) : string
id long The ID to convert.
Результат string

RemoveArchives() публичный Метод

Removes old archives.
public RemoveArchives ( System.TimeSpan olderThan ) : int
olderThan System.TimeSpan The time span used to determine which archives to be removed.
Результат int

SaveIndexToDirectory() публичный Метод

Saves the index XML file to the directory.
public SaveIndexToDirectory ( XmlDocument document, DirectoryInfo directory ) : void
document System.Xml.XmlDocument /// The index to be saved. ///
directory System.IO.DirectoryInfo /// The where the generated code is saved. ///
Результат void

SavePackageToDirectory() публичный Метод

Saves the package XML file to the directory.
public SavePackageToDirectory ( XmlDocument document, DirectoryInfo directory ) : string
document System.Xml.XmlDocument The to be saved.
directory System.IO.DirectoryInfo The where the generated code is saved.
Результат string

Transform() публичный Метод

Transforms the XmlDocument.
public Transform ( XmlDocument document ) : XmlDocument
document System.Xml.XmlDocument The document to be transformed.
Результат System.Xml.XmlDocument

UpdateProjectFile() публичный Метод

Updates the project file with the new code files.
public UpdateProjectFile ( DirectoryInfo directory ) : void
directory System.IO.DirectoryInfo The directory containing the project files to update.
Результат void