C# Class HandCoded.FpML.Meta.SchemeDefaults

The SchemeDefaults class provides a way to find out the URI associated with a particular type of coded data. An instance of SchemeDefaults exists for each supported release of FpML and is customised to return the appropriate URI for that version.
Show file Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Methods

Method Description
GetDefaultAttributeForScheme ( string name ) : string

Returns the name of the scheme default attribute that may provide the default value of a given scheme attribute. For example the currencyScheme attribute will default to the value of the currencySchemeDefault attribute.

GetDefaultUriForAttribute ( string name ) : string

Returns the URI normally associated with the given scheme default attribute.

SchemeDefaults ( string values ) : System

Constructs a SchemeDefaults instance for an FpML 4-0 or later based instance in which scheme URI references can have schema defined default values.

SchemeDefaults ( string values, string names ) : System

Constructs a SchemeDefaults instance for a pre-FpML4-0 release where schemes have global defaults on the FpML element.

Method Details

GetDefaultAttributeForScheme() public method

Returns the name of the scheme default attribute that may provide the default value of a given scheme attribute. For example the currencyScheme attribute will default to the value of the currencySchemeDefault attribute.
public GetDefaultAttributeForScheme ( string name ) : string
name string The name of the scheme attribute
return string

GetDefaultUriForAttribute() public method

Returns the URI normally associated with the given scheme default attribute.
public GetDefaultUriForAttribute ( string name ) : string
name string The name of the scheme default attribute.
return string

SchemeDefaults() public method

Constructs a SchemeDefaults instance for an FpML 4-0 or later based instance in which scheme URI references can have schema defined default values.
public SchemeDefaults ( string values ) : System
values string An array of scheme names and default URIs.
return System

SchemeDefaults() public method

Constructs a SchemeDefaults instance for a pre-FpML4-0 release where schemes have global defaults on the FpML element.
public SchemeDefaults ( string values, string names ) : System
values string An array of scheme names and default URIs.
names string An array holding a scheme to default attribute map.
return System