C# 클래스 HandCoded.FpML.Schemes.SchemeCollection

The SchemeCollection class maintains a set of Scheme instances that are used to validate data within an FpML document.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Scheme scheme ) : Scheme

Adds the given Scheme instance to the extent set. If the Scheme has the same URI as an existing entry then it will replace the old definition.

FindSchemeForUri ( string uri ) : Scheme

Attempts to locate the Scheme with the given URI in the cache.

Parse ( string uri ) : void

Parses the XML data file indicated by the URI to extract default sets of closed schemes.

Remove ( Scheme scheme ) : Scheme

Removes the indicated Scheme instance from the extent set.

Remove ( string uri ) : Scheme

Removes the Scheme identified by the given URI if it is contained within the extent set.

SchemeCollection ( ) : System

Constructs an empty SchemeCollection

메소드 상세

Add() 공개 메소드

Adds the given Scheme instance to the extent set. If the Scheme has the same URI as an existing entry then it will replace the old definition.
public Add ( Scheme scheme ) : Scheme
scheme Scheme The instance to be added.
리턴 Scheme

FindSchemeForUri() 공개 메소드

Attempts to locate the Scheme with the given URI in the cache.
public FindSchemeForUri ( string uri ) : Scheme
uri string The URI of the required .
리턴 Scheme

Parse() 공개 메소드

Parses the XML data file indicated by the URI to extract default sets of closed schemes.
public Parse ( string uri ) : void
uri string The URI of the source XML document.
리턴 void

Remove() 공개 메소드

Removes the indicated Scheme instance from the extent set.
public Remove ( Scheme scheme ) : Scheme
scheme Scheme The to be removed.
리턴 Scheme

Remove() 공개 메소드

Removes the Scheme identified by the given URI if it is contained within the extent set.
public Remove ( string uri ) : Scheme
uri string The URI of the target .
리턴 Scheme

SchemeCollection() 공개 메소드

Constructs an empty SchemeCollection
public SchemeCollection ( ) : System
리턴 System