C# Class HandCoded.FpML.Schemes.SchemeCollection

The SchemeCollection class maintains a set of Scheme instances that are used to validate data within an FpML document.
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Add() public méthode

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.
Résultat Scheme

FindSchemeForUri() public méthode

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

Parse() public méthode

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.
Résultat void

Remove() public méthode

Removes the indicated Scheme instance from the extent set.
public Remove ( Scheme scheme ) : Scheme
scheme Scheme The to be removed.
Résultat Scheme

Remove() public méthode

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 .
Résultat Scheme

SchemeCollection() public méthode

Constructs an empty SchemeCollection
public SchemeCollection ( ) : System
Résultat System