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

A Conversion instance encapsulates the knowledge of how to transform an XML document from one Release of a Specification to another.
It is expected that most conversions will be between different releases of the same specification but the code allows for the discovery of inter-specification conversions.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DepthFirstSearch Conversion

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

Метод Описание
ConversionFor ( Release source, Release target ) : Conversion

Attempts to find a Conversion that will transform a XmlDocument between the two specified releases. The releases must be different, null transformations are not allowed.

Convert ( XmlDocument document, IHelper helper ) : XmlDocument

Applies the Conversion to a XmlDocument instance to create a new XmlDocument.

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

Метод Описание
Conversion ( ) : System

Constructs a Conversion instance.

Приватные методы

Метод Описание
DepthFirstSearch ( Release source, Release target, Stack stack ) : Conversion

Recursively explores the Release definitions to determine the shortest conversion path between two releases.

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

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

Constructs a Conversion instance.
protected Conversion ( ) : System
Результат System

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

Attempts to find a Conversion that will transform a XmlDocument between the two specified releases. The releases must be different, null transformations are not allowed.
public static ConversionFor ( Release source, Release target ) : Conversion
source Release The source to convert from.
target Release The target to convert to.
Результат Conversion

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

Applies the Conversion to a XmlDocument instance to create a new XmlDocument.
public abstract Convert ( XmlDocument document, IHelper helper ) : XmlDocument
document System.Xml.XmlDocument The to be converted.
helper IHelper A used to guide conversion.
Результат System.Xml.XmlDocument