C# Class RssToolkit.Rss.CodeGeneration.RssCodeGenerator

Used for generating Code using CodeDom
Exibir arquivo Open project: Throy/derp-octo-robot Class Usage Examples

Public Methods

Method Description
GenerateCode ( RssDocumentBase rssDefinition, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void

Generates the code.

GenerateCode ( string codeXml, string url, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void

Generates the code.

GenerateCodeDomTree ( RssDocumentBase rssDefinition, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void

Generates the code DOM tree.

GenerateCodeDomTree ( string codeXml, string url, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void

Generates the code DOM tree.

Private Methods

Method Description
AddCodeProperty ( string nodeName, System.Xml.XmlNodeType nodeType, CodeTypeReference propertyType, CodeTypeDeclaration classType, bool collection, string nameSpaceName ) : void
CodeNameFromRssName ( string rssName ) : string

Codes the name of the name from RSS.

CodeParamNameFromRssName ( string rssName ) : string

Codes the name of the param name from RSS.

CodePrivateNameFromRssName ( string rssName ) : string

Codes the name of the private name from RSS.

GenerateLoad ( CodeTypeDeclaration channelType, string url ) : void
GenerateLoadRssByUrl ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssByXml ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssByXmlTextReader ( CodeTypeDeclaration channelType ) : void
GenerateLoadRssItems ( CodeTypeDeclaration channelType, string itemTypeName ) : void
GenerateToDataSet ( CodeTypeDeclaration channelType ) : void
GenerateToXml ( CodeTypeDeclaration channelType ) : void
NamespaceContainsType ( CodeNamespace nameSpace, string typeName ) : bool

Namespaces the type of the contains.

RssCodeGenerator ( ) : System
TypeContainsProperty ( CodeTypeDeclaration type, string propertyToFind ) : bool

Types the contains property.

Method Details

GenerateCode() public static method

Generates the code.
public static GenerateCode ( RssDocumentBase rssDefinition, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void
rssDefinition RssDocumentBase The RSS definition.
outputLanguage string The output language.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCode System.IO.TextWriter The output code.
useBaseClass bool if set to true [use base class].
return void

GenerateCode() public static method

Generates the code.
public static GenerateCode ( string codeXml, string url, string outputLanguage, string namespaceName, string classNamePrefix, TextWriter outputCode, bool useBaseClass ) : void
codeXml string The code XML.
url string The URL.
outputLanguage string The output language.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCode System.IO.TextWriter The output code.
useBaseClass bool if set to true [use base class].
return void

GenerateCodeDomTree() public static method

Generates the code DOM tree.
public static GenerateCodeDomTree ( RssDocumentBase rssDefinition, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void
rssDefinition RssDocumentBase The RSS definition.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCodeCompileUnit System.CodeDom.CodeCompileUnit The output code compile unit.
useBaseClass bool if set to true [use base class].
return void

GenerateCodeDomTree() public static method

Generates the code DOM tree.
public static GenerateCodeDomTree ( string codeXml, string url, string namespaceName, string classNamePrefix, CodeCompileUnit outputCodeCompileUnit, bool useBaseClass ) : void
codeXml string The code XML.
url string The URL.
namespaceName string Name of the namespace.
classNamePrefix string The class name prefix.
outputCodeCompileUnit System.CodeDom.CodeCompileUnit The output code compile unit.
useBaseClass bool if set to true [use base class].
return void