C# Class ConvertLib.Converter

Class used to convert WSDL files into generated Objective-C code.
显示文件 Open project: amaechler/sudzc

Public Methods

Method Description
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.

Private Methods

Method Description
copyDirectory ( String source, String destination, System.Boolean overwrite ) : void

Copies one directory to another.

Method Details

Convert() public method

Converts the WSDL files to generated code in the output directory.
public Convert ( List &packages ) : DirectoryInfo
packages List Outputs the list of packages.
return System.IO.DirectoryInfo

Convert() public method

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.
return System.IO.DirectoryInfo

Convert() public method

Converts the WSDL files to generated code in the output directory.
public Convert ( ) : List
return List

ConvertToPackage() public method

Converts the WSDL file to a package XML document.
public ConvertToPackage ( WsdlFile file ) : XmlDocument
file WsdlFile /// The to be converted. ///
return System.Xml.XmlDocument

ConvertToPackages() public method

Converts all WSDL files to package XML documents.
public ConvertToPackages ( ) : List
return List

CreateArchive() public method

Creates and archive of the generated code.
public CreateArchive ( ) : FileInfo
return System.IO.FileInfo

CreateArchive() public method

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. ///
return System.IO.FileInfo

CreateArchive() public method

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.
return System.IO.FileInfo

GetPackageName() public static method

Generates a package name.
public static GetPackageName ( List packages ) : string
packages List The list of packages used to generate the name.
return string

GetPackageName() public static method

Generates a package name.
public static GetPackageName ( string namespaceUri ) : string
namespaceUri string The URI of the namespace used to generate the name.
return string

MakeUUID() public static method

Creates a UUID for generating PBX files.
public static MakeUUID ( long id ) : string
id long The ID to convert.
return string

RemoveArchives() public method

Removes old archives.
public RemoveArchives ( System.TimeSpan olderThan ) : int
olderThan System.TimeSpan The time span used to determine which archives to be removed.
return int

SaveIndexToDirectory() public method

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. ///
return void

SavePackageToDirectory() public method

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.
return string

Transform() public method

Transforms the XmlDocument.
public Transform ( XmlDocument document ) : XmlDocument
document System.Xml.XmlDocument The document to be transformed.
return System.Xml.XmlDocument

UpdateProjectFile() public method

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.
return void