C# Class Deeply.Tools.SsisMetadataToClass.ClassWriter

Class writer definition.
Exibir arquivo Open project: jsnape/deeply Class Usage Examples

Private Properties

Property Type Description
WriteBeginClass void
WriteBeginNamespace void
WriteEndClass void
WriteEndNamespace void
WriteHeader void
WriteMetadata void
WriteProperty void
WriteUsing void

Public Methods

Method Description
ClassWriter ( Options options, TextWriter output, string headerFormat ) : System

Initializes a new instance of the ClassWriter class.

Write ( IEnumerable metadata ) : void

Writes the current sequence to the specified output.

Write ( Options options, IEnumerable metadata, TextWriter output ) : void

Helper function to setup the class and write the output.

Private Methods

Method Description
WriteBeginClass ( string className ) : void

Writes a begin class definition.

WriteBeginNamespace ( string namespaceName ) : void

Writes a begin namespace.

WriteEndClass ( ) : void

Writes the end of class.

WriteEndNamespace ( ) : void

Writes the end namespace.

WriteHeader ( string className ) : void

Writes the file header.

WriteMetadata ( IEnumerable metadata ) : void

Writes the metadata as class properties.

WriteProperty ( SsisMetadata item ) : void

Writes a single property.

WriteUsing ( ) : void

Writes the using statements.

Method Details

ClassWriter() public method

Initializes a new instance of the ClassWriter class.
public ClassWriter ( Options options, TextWriter output, string headerFormat ) : System
options Options Output options.
output System.IO.TextWriter Output writer to send class to.
headerFormat string Header format text.
return System

Write() public method

Writes the current sequence to the specified output.
public Write ( IEnumerable metadata ) : void
metadata IEnumerable Sequence of metadata to write.
return void

Write() public static method

Helper function to setup the class and write the output.
public static Write ( Options options, IEnumerable metadata, TextWriter output ) : void
options Options Output options.
metadata IEnumerable Sequence of metadata to write.
output System.IO.TextWriter Output writer to send class to.
return void