C# Class NAnt.Core.Tasks.NAntSchemaTask

Inheritance: Task
显示文件 Open project: skolima/NAnt

Private Properties

Property Type Description
ExecuteTask void

Public Methods

Method Description
WriteSchema ( System stream, Type tasks, Type dataTypes, string targetNS ) : XmlSchema

Creates a NAnt Schema for given types

Protected Methods

Method Description
CreateXsdAttribute ( string name, bool required ) : XmlSchemaAttribute

Creates a new XmlSchemaAttribute instance.

CreateXsdSequence ( Decimal min, Decimal max ) : XmlSchemaSequence

Creates a new XmlSchemaSequence instance.

GenerateIDFromType ( Type type ) : string
TextToNodeArray ( string text ) : System.Xml.XmlNode[]

Private Methods

Method Description
ExecuteTask ( ) : void

Method Details

CreateXsdAttribute() protected static method

Creates a new XmlSchemaAttribute instance.
protected static CreateXsdAttribute ( string name, bool required ) : XmlSchemaAttribute
name string The name of the attribute.
required bool Value indicating whether the attribute should be required.
return System.Xml.Schema.XmlSchemaAttribute

CreateXsdSequence() protected static method

Creates a new XmlSchemaSequence instance.
protected static CreateXsdSequence ( Decimal min, Decimal max ) : XmlSchemaSequence
min Decimal The minimum value to allow for this choice
max Decimal The maximum value to allow, Decimal.MaxValue sets it to 'unbound'
return System.Xml.Schema.XmlSchemaSequence

GenerateIDFromType() protected static method

protected static GenerateIDFromType ( Type type ) : string
type System.Type
return string

TextToNodeArray() protected static method

protected static TextToNodeArray ( string text ) : System.Xml.XmlNode[]
text string
return System.Xml.XmlNode[]

WriteSchema() public static method

Creates a NAnt Schema for given types
public static WriteSchema ( System stream, Type tasks, Type dataTypes, string targetNS ) : XmlSchema
stream System The output stream to save the schema to. If , writing is ignored, no exception generated.
tasks System.Type The list of tasks to generate XML Schema for.
dataTypes System.Type The list of datatypes to generate XML Schema for.
targetNS string The target namespace to output.
return System.Xml.Schema.XmlSchema