C# Class HandCoded.Meta.Release

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

AddTargetConversion() protected méthode

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.
Résultat void

HasRootElement() public méthode

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.
Résultat bool

IsInstance() public abstract méthode

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.
Résultat bool

NewFragment() public abstract méthode

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.
Résultat System.Xml.XmlDocument

NewInstance() public abstract méthode

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.
Résultat System.Xml.XmlDocument

Release() protected méthode

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.
Résultat System

ToString() public méthode

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