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.
Exibir arquivo Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Methods

Method 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 method

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.
return Scheme

FindSchemeForUri() public method

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

Parse() public method

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.
return void

Remove() public method

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

Remove() public method

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 .
return Scheme

SchemeCollection() public method

Constructs an empty SchemeCollection
public SchemeCollection ( ) : System
return System