C# Class MakeNLogXSD.XsdFileGenerator

显示文件 Open project: NLog/NLog Class Usage Examples

Public Methods

Method Description
ProcessApiFile ( string apiFile ) : void
SaveResult ( string outputFile ) : void
XsdFileGenerator ( ) : System

Private Methods

Method Description
GenerateEnumType ( System.Xml.Linq.XElement enumProperty ) : System.Xml.Linq.XElement
GetAttributeElement ( System.Xml.Linq.XElement propertyElement ) : System.Xml.Linq.XElement

Ignore if returns null

GetAttributeElements ( System.Xml.Linq.XElement type ) : IEnumerable
GetPropertyElement ( System.Xml.Linq.XElement propertyElement ) : System.Xml.Linq.XElement

Ignore if returns null.

GetPropertyElements ( System.Xml.Linq.XElement type ) : IEnumerable
GetXsdType ( string apiTypeName, bool attribute ) : string
LoadTemplateXSD ( ) : System.Xml.Linq.XElement

Method Details

ProcessApiFile() public method

public ProcessApiFile ( string apiFile ) : void
apiFile string
return void

SaveResult() public method

public SaveResult ( string outputFile ) : void
outputFile string
return void

XsdFileGenerator() public method

public XsdFileGenerator ( ) : System
return System