C# Класс HandCoded.FpML.Schemes.SchemeCollection

The SchemeCollection class maintains a set of Scheme instances that are used to validate data within an FpML document.
Показать файл Открыть проект Примеры использования класса

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

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