C# Class NAnt.Core.Tasks.NAntSchemaTask.NAntSchemaGenerator

Exibir arquivo Open project: skolima/NAnt

Public Methods

Method Description
Compile ( ) : void
NAntSchemaGenerator ( Type tasks, Type dataTypes, string targetNS ) : System

Creates a new instance of the NAntSchemaGenerator class.

Protected Methods

Method Description
CreateTaskListComplexType ( Type tasks ) : XmlSchemaComplexType
CreateTaskListComplexType ( Type tasks, Type dataTypes, bool includeProjectLevelItems ) : XmlSchemaComplexType
FindComplexTypeByID ( string id ) : XmlSchemaComplexType
FindOrCreateComplexType ( Type t ) : XmlSchemaComplexType
ValidationEH ( object sender, ValidationEventArgs args ) : void

Private Methods

Method Description
GetDataTypeName ( Type t ) : string
GetTaskName ( Type t ) : string

Method Details

Compile() public method

public Compile ( ) : void
return void

CreateTaskListComplexType() protected method

protected CreateTaskListComplexType ( Type tasks ) : XmlSchemaComplexType
tasks System.Type
return System.Xml.Schema.XmlSchemaComplexType

CreateTaskListComplexType() protected method

protected CreateTaskListComplexType ( Type tasks, Type dataTypes, bool includeProjectLevelItems ) : XmlSchemaComplexType
tasks System.Type
dataTypes System.Type
includeProjectLevelItems bool
return System.Xml.Schema.XmlSchemaComplexType

FindComplexTypeByID() protected method

protected FindComplexTypeByID ( string id ) : XmlSchemaComplexType
id string
return System.Xml.Schema.XmlSchemaComplexType

FindOrCreateComplexType() protected method

protected FindOrCreateComplexType ( Type t ) : XmlSchemaComplexType
t System.Type
return System.Xml.Schema.XmlSchemaComplexType

NAntSchemaGenerator() public method

Creates a new instance of the NAntSchemaGenerator class.
public NAntSchemaGenerator ( Type tasks, Type dataTypes, string targetNS ) : System
tasks System.Type Tasks for which a schema should be generated.
dataTypes System.Type Data Types for which a schema should be generated.
targetNS string The namespace to use. /// http://tempuri.org/nant.xsd ///
return System

ValidationEH() protected method

protected ValidationEH ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
return void