C# Class Sage.Configuration.ProjectConfiguration

Provides a configuration container for all configurable properties of this project.
Mostrar archivo Open project: igorfrance/sage Class Usage Examples

Private Properties

Property Type Description
MergeExtension void
Parse void
Parse void
ProjectConfiguration System
ProjectConfiguration System
RegisterExtension void
RegisterRoutes void

Public Methods

Method Description
Create ( ) : ProjectConfiguration

Creates a ProjectConfiguration instance with all settings initialized to their defaults.

Create ( Stream configStream ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the file from the specified configStream.

Create ( XmlDocument configDoc ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the configDoc.

Create ( string configPath ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the file from the specified configPath.

GetVariable ( string name, string locale = null ) : string

Gets the value of the project variable with the specified name.

ToString ( ) : string
ToXml ( XmlDocument ownerDoc ) : XmlElement

Generates an XML element that represents this instance.

Private Methods

Method Description
MergeExtension ( ProjectConfiguration extensionConfig ) : void
Parse ( XmlElement configNode ) : void
Parse ( string configPath ) : void
ProjectConfiguration ( ) : System
ProjectConfiguration ( ProjectConfiguration initConfiguration = null ) : System
RegisterExtension ( ProjectConfiguration extensionConfig ) : void
RegisterRoutes ( ) : void

Method Details

Create() public static method

Creates a ProjectConfiguration instance with all settings initialized to their defaults.
public static Create ( ) : ProjectConfiguration
return ProjectConfiguration

Create() public static method

Creates a new ProjectConfiguration instance using the file from the specified configStream.
public static Create ( Stream configStream ) : ProjectConfiguration
configStream Stream The stream to the configuration file to use.
return ProjectConfiguration

Create() public static method

Creates a new ProjectConfiguration instance using the configDoc.
public static Create ( XmlDocument configDoc ) : ProjectConfiguration
configDoc System.Xml.XmlDocument The configuration file to use.
return ProjectConfiguration

Create() public static method

Creates a new ProjectConfiguration instance using the file from the specified configPath.
public static Create ( string configPath ) : ProjectConfiguration
configPath string The path to the configuration file to use.
return ProjectConfiguration

GetVariable() public method

Gets the value of the project variable with the specified name.
public GetVariable ( string name, string locale = null ) : string
name string The name of the variable.
locale string Optional locale to use to select the variable value.
return string

ToString() public method

public ToString ( ) : string
return string

ToXml() public method

Generates an XML element that represents this instance.
public ToXml ( XmlDocument ownerDoc ) : XmlElement
ownerDoc System.Xml.XmlDocument The document to use to create the element with.
return System.Xml.XmlElement