C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetDefaultAttributeForScheme() публичный Метод

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
Результат string

GetDefaultUriForAttribute() публичный Метод

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.
Результат string

SchemeDefaults() публичный Метод

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.
Результат System

SchemeDefaults() публичный Метод

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.
Результат System