C# Class HandCoded.FpML.Schemes.CachedScheme

The CachedScheme class provides in-memory storage for the codes defined for its domain and thier associated descriptions.
Inheritance: Scheme
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Protected Properties

Свойство Type Description
values Value>.Dictionary

Méthodes publiques

Méthode Description
CachedScheme ( string uri ) : System

Constructs a CachedScheme instance for the indicated scheme URI.

CachedScheme ( string uri, string canonicalUri ) : System

Constructs a CachedScheme instance for the indicated scheme URI and canonical URI.

IsValid ( string code ) : bool

Determines if the given code value is valid within the scheme.

Méthodes protégées

Méthode Description
Add ( Value value ) : Value

Adds a Value instance to the extent set manange by this instance. If the new value has the same code as an existing entry it will replace it and a reference to the old instance will be returned to the caller.

Method Details

Add() protected méthode

Adds a Value instance to the extent set manange by this instance. If the new value has the same code as an existing entry it will replace it and a reference to the old instance will be returned to the caller.
protected Add ( Value value ) : Value
value Value The scheme to be added.
Résultat Value

CachedScheme() public méthode

Constructs a CachedScheme instance for the indicated scheme URI.
public CachedScheme ( string uri ) : System
uri string The URI used to reference the scheme.
Résultat System

CachedScheme() public méthode

Constructs a CachedScheme instance for the indicated scheme URI and canonical URI.
public CachedScheme ( string uri, string canonicalUri ) : System
uri string The URI used to reference the scheme.
canonicalUri string The canonical URI or null.
Résultat System

IsValid() public méthode

Determines if the given code value is valid within the scheme.
public IsValid ( string code ) : bool
code string The code value to be validated.
Résultat bool

Property Details

values protected_oe property

Provides the underlying storage for the code values.
protected Dictionary values
Résultat Value>.Dictionary