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
显示文件 Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Protected Properties

Property Type Description
values Value>.Dictionary

Public Methods

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

Protected Methods

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

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

CachedScheme() public method

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

CachedScheme() public method

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

IsValid() public method

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

Property Details

values protected_oe property

Provides the underlying storage for the code values.
protected Dictionary values
return Value>.Dictionary