C# Class Deeply.Tools.SsisMetadataToClass.MetadataParser

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

Public Methods

Method Description
MetadataParser ( string text ) : System

Initializes a new instance of the MetadataParser class.

Parse ( ) : IEnumerable

Parses the supplied text into a sequence of SsisMetadata objects.

Parse ( string text ) : IEnumerable

Helper function to setup the parser and parse the supplied text.

Private Methods

Method Description
ParseDataLine ( string columns ) : SsisMetadata

Helper method to parse a line of data and return a SsisMetadata object.

SplitColumns ( string line ) : string[]

Splits a line into columns.

SplitLines ( string text ) : string[]

Helper method to split the text into lines and check that there are at least two.

ValidateHeader ( string header ) : void

Helper method to validate the head contains the correct columns.

Method Details

MetadataParser() public method

Initializes a new instance of the MetadataParser class.
public MetadataParser ( string text ) : System
text string Text to parse.
return System

Parse() public method

Parses the supplied text into a sequence of SsisMetadata objects.
When the text cannot be parsed.
public Parse ( ) : IEnumerable
return IEnumerable

Parse() public static method

Helper function to setup the parser and parse the supplied text.
When the text cannot be parsed.
public static Parse ( string text ) : IEnumerable
text string Text to parse.
return IEnumerable