C# Class HandCoded.Meta.Release

A Release represents an identifiable version of a Specification.
Inheritance: IGrammar
Show file Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Methods

Method Description
HasRootElement ( String rootElement ) : bool

Determines if the indicated root element name is one accepted by this Release.

IsInstance ( XmlDocument document ) : bool

Determines if the given XmlDocument is an instance of the XML grammar represented by this instance.

NewFragment ( string rootElement ) : XmlDocument

Create a new XmlDocument instance which will hold a fragment of a document based on the grammar represented by this release.

NewInstance ( String rootElement ) : XmlDocument

Creates a new instance the XML grammar represented by this instance using the indicated element name as the root element for the document.

ToString ( ) : string

Returns the specification name and version of this Release.

Protected Methods

Method Description
AddSourceConversion ( Conversion conversion ) : void

Adds the indicated Conversion to the set of conversions that take this Release as the source format.

AddTargetConversion ( Conversion conversion ) : void

Adds the indicated Conversion to the set of conversions that take this Release as the target format.

Release ( Specification specification, string version, string rootElements ) : System

Constructs a Release instance and associates it with the indicated Specification.

Method Details

AddSourceConversion() protected method

Adds the indicated Conversion to the set of conversions that take this Release as the source format.
protected AddSourceConversion ( Conversion conversion ) : void
conversion Conversion The to be added.
return void

AddTargetConversion() protected method

Adds the indicated Conversion to the set of conversions that take this Release as the target format.
protected AddTargetConversion ( Conversion conversion ) : void
conversion Conversion The to be added.
return void

HasRootElement() public method

Determines if the indicated root element name is one accepted by this Release.
public HasRootElement ( String rootElement ) : bool
rootElement String The root element name to test.
return bool

IsInstance() public abstract method

Determines if the given XmlDocument is an instance of the XML grammar represented by this instance.
public abstract IsInstance ( XmlDocument document ) : bool
document System.Xml.XmlDocument The to be tested.
return bool

NewFragment() public abstract method

Create a new XmlDocument instance which will hold a fragment of a document based on the grammar represented by this release.
public abstract NewFragment ( string rootElement ) : XmlDocument
rootElement string The name of the root element.
return System.Xml.XmlDocument

NewInstance() public abstract method

Creates a new instance the XML grammar represented by this instance using the indicated element name as the root element for the document.
public abstract NewInstance ( String rootElement ) : XmlDocument
rootElement String The name of the root element.
return System.Xml.XmlDocument

Release() protected method

Constructs a Release instance and associates it with the indicated Specification.
protected Release ( Specification specification, string version, string rootElements ) : System
specification Specification The owning .
version string The version identifier for this release.
rootElements string The set of possible root element.
return System

ToString() public method

Returns the specification name and version of this Release.
public ToString ( ) : string
return string