C# Class NArrange.Core.ProjectManager

Provides project/file retrieval and storage functionality.
Mostrar archivo Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method Description
CanParse ( string inputFile ) : bool

Determines whether or not the specified file can be parsed.

GetExtension ( string inputFile ) : string

Gets the file extension.

GetSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all parse-able source files that are children of the specified solution or project. If an individual source file is provided, the same file name is returned.

GetSourceHandler ( string fileName ) : SourceHandler

Retrieves an extension handler.

IsProject ( string inputFile ) : bool

Determines whether or not the specified file is a project.

IsSolution ( string inputFile ) : bool

Determines whether or not the specified file is a solution.

ParseElements ( string inputFile, string text ) : ReadOnlyCollection

Parses code elements from the input file.

ProjectManager ( CodeConfiguration configuration ) : System

Creates a new FileManager.

Private Methods

Method Description
GetDirectorySourceFiles ( string directory ) : ReadOnlyCollection

Gets all source file for a directory.

GetProjectHandler ( string fileName ) : ProjectHandler

Retrieves an extension handler for a project file.

GetProjectSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all source files associated with a project.

GetSolutionSourceFiles ( string fileName ) : ReadOnlyCollection

Gets all source files associated with a solution.

Initialize ( ) : void

Initializes the manager from the configuration supplied during constuction.

IsRecognizedFile ( string fileName, ExtensionConfigurationCollection extensions ) : bool

Gets a boolean indicating whether or not the file is a recognized source file.

IsRecognizedSourceFile ( string fileName ) : bool

Gets a boolean indicating whether or not the file is a recognized source file.

Method Details

CanParse() public method

Determines whether or not the specified file can be parsed.
public CanParse ( string inputFile ) : bool
inputFile string The input file.
return bool

GetExtension() public static method

Gets the file extension.
public static GetExtension ( string inputFile ) : string
inputFile string The input file.
return string

GetSourceFiles() public method

Gets all parse-able source files that are children of the specified solution or project. If an individual source file is provided, the same file name is returned.
public GetSourceFiles ( string fileName ) : ReadOnlyCollection
fileName string Name of the file.
return ReadOnlyCollection

GetSourceHandler() public method

Retrieves an extension handler.
public GetSourceHandler ( string fileName ) : SourceHandler
fileName string Name of the file.
return SourceHandler

IsProject() public method

Determines whether or not the specified file is a project.
public IsProject ( string inputFile ) : bool
inputFile string Input file.
return bool

IsSolution() public static method

Determines whether or not the specified file is a solution.
public static IsSolution ( string inputFile ) : bool
inputFile string The input file.
return bool

ParseElements() public method

Parses code elements from the input file.
public ParseElements ( string inputFile, string text ) : ReadOnlyCollection
inputFile string The input file.
text string The text of the input file.
return ReadOnlyCollection

ProjectManager() public method

Creates a new FileManager.
public ProjectManager ( CodeConfiguration configuration ) : System
configuration NArrange.Core.Configuration.CodeConfiguration The configuration.
return System