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.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

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