C# Class XsdTool.Xsd

Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
AddImports ( CodeNamespace codeNamespace, string namespaces ) : void
GetNamespacesForTypes ( Type types ) : string[]
Main ( string args ) : int

Private Methods

Method Description
AddElementAndType ( XmlSchema schema, string baseXsdType, string ns ) : void
AddEvents ( XmlSerializer serializer ) : void
AddFakeSchemas ( XmlSchema parent, System.Xml.Serialization.XmlSchemas schemas ) : void
AddSimpleType ( XmlSchema schema, string typeName, string baseXsdType ) : void
ArgumentMatch ( string arg, string formal ) : bool
ArgumentMatchEx ( string arg, string formal, int minletters ) : bool
CollectIncludes ( XmlSchema schema, Hashtable includeSchemas, bool useSerializer ) : void
Compile ( System.Xml.Serialization.XmlSchemas userSchemas ) : void
CreateCodeGenerator ( string language, ICodeGenerator &codeGen, string &fileExtension ) : void
CreateFakeSoapEncodingSchema ( string ns, string name ) : XmlSchema
CreateFakeWsdlSchema ( string ns ) : XmlSchema
CreateFakeXsdSchema ( string ns, string name ) : XmlSchema
CreateOutputWriter ( string outputdir, string fileName, string newExtension ) : TextWriter
Error ( Exception e, string prefix ) : void
ExportSchemas ( string outputdir, IList dlls, IList typeNames ) : void
GenerateVersionComment ( CodeNamespace codeNamespace ) : void
ImportSchemasAsClasses ( string outputdir, ICodeGenerator codeGen, string fileExtension, IList fileNames, string ns, string uri, IList elements ) : void
NodeNameOf ( XmlNodeEventArgs e ) : string
OnUnknownNode ( object sender, XmlNodeEventArgs e ) : void
ReadSchema ( string location, bool useSerializer ) : XmlSchema
Run ( string args ) : int
TypeNameOf ( object o ) : string
ValidationCallbackWithErrorCode ( object sender, ValidationEventArgs args ) : void
WriteHeader ( ) : void
WriteHelp ( ) : void

Method Details

AddImports() public static method

public static AddImports ( CodeNamespace codeNamespace, string namespaces ) : void
codeNamespace System.CodeDom.CodeNamespace
namespaces string
return void

GetNamespacesForTypes() public static method

public static GetNamespacesForTypes ( Type types ) : string[]
types System.Type
return string[]

Main() public static method

public static Main ( string args ) : int
args string
return int