C# Класс HandCoded.Meta.Release

A Release represents an identifiable version of a Specification.
Наследование: IGrammar
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

AddSourceConversion() защищенный Метод

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.
Результат void

AddTargetConversion() защищенный Метод

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.
Результат void

HasRootElement() публичный Метод

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.
Результат bool

IsInstance() публичный абстрактный Метод

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.
Результат bool

NewFragment() публичный абстрактный Метод

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.
Результат System.Xml.XmlDocument

NewInstance() публичный абстрактный Метод

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.
Результат System.Xml.XmlDocument

Release() защищенный Метод

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.
Результат System

ToString() публичный Метод

Returns the specification name and version of this Release.
public ToString ( ) : string
Результат string