C# 클래스 HandCoded.Meta.Specification

Instances of the Specification class represent XML based data models such as those for the standards FpML and FixML.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Release release ) : void

Adds the indicated Release instance to the set managed by the Specification.

ForDocument ( XmlDocument document ) : Specification

Attempts to locate the Specification instance corresponding to the given XmlDocument.

ForName ( string name ) : Specification

Attempts to locate the Specification instance corresponding to the given name.

GetHashCode ( ) : int

Returns a hash code for this instance based on its name.

GetReleaseForDocument ( XmlDocument document ) : Release

Attempts to locate a Release of the current Specification that is compatible with the given XmlDocument.

GetReleaseForVersion ( string version ) : Release

Attempts to locate a Release associated with this Specification with the indicated version identifier.

GetReleaseForVersionAndNamespace ( string version, string namespaceUri ) : SchemaRelease

Attempts to locate a SchemaRelease associated with this Specification with the indicated version identifier and namespace URI.

IsInstance ( XmlDocument document ) : bool

Determines if the given XmlDocument is an instance of some Release of this Specification.

ReleaseForDocument ( XmlDocument document ) : Release

Attempts to locate the Release instance corresponding to the given XmlDocument.

Remove ( Release release ) : void

Removes the indicated Release instance from the set managed by the Specification.

Specification ( string name ) : System

Constructs a Specification with the given name.

ToString ( ) : string

Converts the Specification to a string for debugging.

비공개 메소드들

메소드 설명
GetClassLoader ( XmlElement context, string defaultClass ) : string

If the releases file defines a custom class loader to be used the process the data block identified by the context element then return its name, otherwise return the indicated default class name.

GetDtdReleaseLoader ( XmlElement context ) : IReleaseLoader

Creates an IReleaseLoader that can process a DTD meta definition.

GetSchemaReleaseLoader ( XmlElement context ) : IReleaseLoader

Creates an IReleaseLoader that can process a schema meta definition.

Specification ( ) : System

Bootstrap the entire collection of specifications by processing the contents of the 'files/releases.xml' file.

ToDebug ( ) : string

Produces a debugging string describing the state of the instance.

메소드 상세

Add() 공개 메소드

Adds the indicated Release instance to the set managed by the Specification.
If the is associated /// with a different Specification.
public Add ( Release release ) : void
release Release The to be added.
리턴 void

ForDocument() 공개 정적인 메소드

Attempts to locate the Specification instance corresponding to the given XmlDocument.
public static ForDocument ( XmlDocument document ) : Specification
document System.Xml.XmlDocument The to be examined.
리턴 Specification

ForName() 공개 정적인 메소드

Attempts to locate the Specification instance corresponding to the given name.
public static ForName ( string name ) : Specification
name string The target Specification name.
리턴 Specification

GetHashCode() 공개 메소드

Returns a hash code for this instance based on its name.
public GetHashCode ( ) : int
리턴 int

GetReleaseForDocument() 공개 메소드

Attempts to locate a Release of the current Specification that is compatible with the given XmlDocument.
public GetReleaseForDocument ( XmlDocument document ) : Release
document System.Xml.XmlDocument The to be examined.
리턴 Release

GetReleaseForVersion() 공개 메소드

Attempts to locate a Release associated with this Specification with the indicated version identifier.
public GetReleaseForVersion ( string version ) : Release
version string The target version identifier.
리턴 Release

GetReleaseForVersionAndNamespace() 공개 메소드

Attempts to locate a SchemaRelease associated with this Specification with the indicated version identifier and namespace URI.
public GetReleaseForVersionAndNamespace ( string version, string namespaceUri ) : SchemaRelease
version string The target version identifier.
namespaceUri string The target namespace URI.
리턴 SchemaRelease

IsInstance() 공개 메소드

Determines if the given XmlDocument is an instance of some Release of this Specification.
public IsInstance ( XmlDocument document ) : bool
document System.Xml.XmlDocument The to be examined.
리턴 bool

ReleaseForDocument() 공개 정적인 메소드

Attempts to locate the Release instance corresponding to the given XmlDocument.
public static ReleaseForDocument ( XmlDocument document ) : Release
document System.Xml.XmlDocument The to be examined.
리턴 Release

Remove() 공개 메소드

Removes the indicated Release instance from the set managed by the Specification.
If the is associated /// with a different Specification.
public Remove ( Release release ) : void
release Release The to be removed.
리턴 void

Specification() 공개 메소드

Constructs a Specification with the given name.
public Specification ( string name ) : System
name string The unique name for the Specification.
리턴 System

ToString() 공개 메소드

Converts the Specification to a string for debugging.
public ToString ( ) : string
리턴 string