OSID Logo
OSID Specifications
locale package
Version 3.0.0
Release Candidate Preview
Interfaceosid.locale.LocaleProfile
Implementsosid.OsidProfile
Description

The locale profile describes the interoperability of locale services.

MethodsupportsVisibleFederation
Description

Tests if visible federation is supported.

Returnboolean true if visible federation is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsTranslation
Description

Tests if translation is supported.

Returnboolean true if translation is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsTranslationAdmin
Description

Tests if translation administration is supported.

Returnboolean true if translation administration is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsNumericFormatting
Description

Tests if numeric formatting is supported.

Returnboolean true if numeric formatting is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarFormatting
Description

Tests if calendar formatting is supported.

Returnboolean true if calendar formatting is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCurrencyFormatting
Description

Tests if currency formatting is supported.

Returnboolean true if currency formatting is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCoordinateFormatting
Description

Tests if coordinate formatting is supported.

Returnboolean true if coordinate formatting is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsUnitConversion
Description

Tests if unit conversion is supported.

Returnboolean true if unit conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCurrencyConversion
Description

Tests if currency conversion is supported.

Returnboolean true if currency conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarConversion
Description

Tests if calendar conversion is supported.

Returnboolean true if calendar conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCoordinateConversion
Description

Tests if coordnate conversion is supported.

Returnboolean true if coordinate conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsSpatialUnitConversion
Description

Tests if spatial unit conversion is supported.

Returnboolean true if spatial unit conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsFormatConversion
Description

Tests if format conversion is supported.

Returnboolean true if format conversion is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarInfo
Description

Tests if a calendar informational service is supported.

Returnboolean true if calendar info is supported, false otherwise
CompliancemandatoryThis method must be implemented.
MethodsupportsLanguageTypesForTranslation
Description

Tests if a given language translation is supported.

Parametersosid.type.TypesourceLanguageTypethe type of the source language
osid.type.TypesourceScriptTypethe type of the source script
osid.type.TypetargetLanguageTypethe type of the target language
osid.type.TypetargetScriptTypethe type of the target script
Returnboolean true if the given source and target translation is supported, false otherwise
ErrorsNULL_ARGUMENT sourceLanguageType, sourceScriptType, targetLanguageType or targetScriptType is null
CompliancemandatoryThis method must be implemented.
MethodgetLanguageTypesForSource
Description

Gets the list of target language types for a given source language type.

Parametersosid.type.TypesourceLanguageTypethe type of the source language
osid.type.TypesourceScriptTypethe type of the source script
Returnosid.type.TypeListthe list of supported types for the given source language type
ErrorsNULL_ARGUMENT sourceLanguageType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceLanguageTypes
Description

Gets all the source language types supported.

Returnosid.type.TypeListthe list of supported language types
CompliancemandatoryThis method must be implemented.
MethodgetScriptTypesForLanguageType
Description

Gets the list of script types available for a given language type.

Parametersosid.type.TypelanguageTypethe type of the language
Returnosid.type.TypeListthe list of supported script types for the given language type
ErrorsNULL_ARGUMENT languageType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsNumericFormatTypes
Description

Tests if a given numeric format type is supported.

Parametersosid.type.TypenumericFormatTypethe type of the numeric format
Returnboolean true if the given numeric format type is supported, false otherwise
ErrorsNULL_ARGUMENT numericFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetNumericFormatTypes
Description

Gets all the numeric format types supported.

Returnosid.type.TypeListthe list of supported numeric format types
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarTypesForFormatting
Description

Tests if a given calendaring formatting is supported.

Parametersosid.type.TypecalendarTypethe type of the calendar
osid.type.TypetimeTypethe type of the time system
osid.type.TypedateFormatTypethe type of the output date format
osid.type.TypetimeFormatTypethe type of the output time format
Returnboolean true if formatting with the given types is supported, false otherwise
ErrorsNULL_ARGUMENT calendarType, calendarFormatType, timeType, or timeFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetCalendarTypesForFormatting
Description

Gets all the calendar types for which formats are available.

Returnosid.type.TypeListthe list of calendar types
CompliancemandatoryThis method must be implemented.
MethodgetDateFormatTypesForCalendarType
Description

Gets the list of date format types for a given calendar type.

Parametersosid.type.TypecalendarTypethe type of the calendar
Returnosid.type.TypeListthe list of supported date format types
ErrorsNULL_ARGUMENT calendarType is null
CompliancemandatoryThis method must be implemented.
MethodgetTimeTypesForFormatting
Description

Gets all the time types for which formatting is available.

Returnosid.type.TypeListthe list of time types
CompliancemandatoryThis method must be implemented.
MethodgetTimeFormatTypesForTimeType
Description

Gets the list of time format types for a given time type.

Parametersosid.type.TypetimeTypethe type of the time
Returnosid.type.TypeListthe list of supported time format types
ErrorsNULL_ARGUMENT timeType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsCurrencyTypesForFormatting
Description

Tests if a given currency formatting is supported.

Parametersosid.type.TypecurrencyTypethe type of the currency
osid.type.TypenumericFormatTypethe type of the output currency format
Returnboolean true if formatting with the given types is supported, false otherwise
ErrorsNULL_ARGUMENT currencyType or numericFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetCurrencyTypesForFormatting
Description

Gets all the currency types for which formatting is available.

Returnosid.type.TypeListthe list of currency types
CompliancemandatoryThis method must be implemented.
MethodgetCurrencyFormatTypesForCurrencyType
Description

Gets the list of currency format types for a given currency type.

Parametersosid.type.TypecurrencyTypethe type of the currency
Returnosid.type.TypeListthe list of supported currency format types
ErrorsNULL_ARGUMENT currencyType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsCoordinateTypesForFormatting
Description

Tests if a given coordinate formatting is supported.

Parametersosid.type.TypecoordinateTypethe type of the coordinate
osid.type.TypecoordinateFormatTypethe type of the output coordinate format
Returnboolean true if formatting with the given types is supported, false otherwise
ErrorsNULL_ARGUMENT cooridinateType or coodinateFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetCoordinateTypesForFormatting
Description

Gets all the coordinate types for which formatting is available.

Returnosid.type.TypeListthe list of coordinate types
CompliancemandatoryThis method must be implemented.
MethodgetCoordinateFormatTypesForCoordinateType
Description

Gets the list of coordinate format types for a given coordinate type.

Parametersosid.type.TypecoordinateTypethe type of the coordinate
Returnosid.type.TypeListthe list of supported coordinate format types
ErrorsNULL_ARGUMENT coordinaterType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsUnitTypesForConversion
Description

Tests if a given measure conversion is supported.

Parametersosid.type.TypesourceUnitTypethe type of the source measure
osid.type.TypetargetUnitTypethe type of the target measure
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceUnitType or targetUnitType is null
CompliancemandatoryThis method must be implemented.
MethodgetUnitTypesForSource
Description

Gets the list of target measure types for a given source measure type.

Parametersosid.type.TypesourceUnitTypethe type of the source measure
Returnosid.type.TypeListthe list of supported target measure types
ErrorsNULL_ARGUMENT sourceUnitType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceUnitTypes
Description

Gets all the source unit types supported.

Returnosid.type.TypeListthe list of supported source unit types
CompliancemandatoryThis method must be implemented.
MethodsupportsCurrencyTypesForConversion
Description

Tests if a given currency conversion is supported.

Parametersosid.type.TypesourceCurrencyTypethe type of the source currency
osid.type.TypetargetCurrencyTypethe type of the target currency
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceCurrencyType or targetCurrencyType is null
CompliancemandatoryThis method must be implemented.
MethodgetCurrencyTypesForSource
Description

Gets the list of target currency types for a given source currency type.

Parametersosid.type.TypesourceCurrencyTypethe type of the source currency
Returnosid.type.TypeListthe list of supported currency types
ErrorsNULL_ARGUMENT sourceCurrencyType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceCurrencyTypes
Description

Gets the list of source currency types.

Returnosid.type.TypeListthe list of supported source currency types
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarTypesForConversion
Description

Tests if a given calendar conversion is supported.

Parametersosid.type.TypesourceCalendarTypethe type of the source calendar
osid.type.TypetargetCalendarTypethe type of the target calendar
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceCalendarType or targetCalendarType is null
CompliancemandatoryThis method must be implemented.
MethodgetCalendarTypesForSource
Description

Gets the list of target calendar types for a given source calendar type.

Parametersosid.type.TypesourceCalendarTypethe type of the source calendar
Returnosid.type.TypeListthe list of supported calendar types
ErrorsNULL_ARGUMENT sourceCalendarType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceCalendarTypes
Description

Gets the list of source calendar types.

Returnosid.type.TypeListthe list of supported source calendar types
CompliancemandatoryThis method must be implemented.
MethodsupportsTimeTypesForConversion
Description

Tests if a given time conversion is supported.

Parametersosid.type.TypesourceTimeTypethe type of the source time
osid.type.TypetargetTimeTypethe type of the target time
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceTimeType or targetTimeType is null
CompliancemandatoryThis method must be implemented.
MethodgetTimeTypesForSource
Description

Gets the list of target time types for a given source time type.

Parametersosid.type.TypesourceTimeTypethe type of the source time
Returnosid.type.TypeListthe list of supported time types
ErrorsNULL_ARGUMENT sourceTimeType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceTimeTypes
Description

Gets the list of source time types.

Returnosid.type.TypeListthe list of supported source time types
CompliancemandatoryThis method must be implemented.
MethodgetTimeTypesForCalendarType
Description

Gets the list of time types supported for a given calendar type where they are both used in a DateTime.

Parametersosid.type.TypecalendarTypethe type of the calendar
Returnosid.type.TypeListthe list of supported time types
ErrorsNULL_ARGUMENT calendarType is null
CompliancemandatoryThis method must be implemented.
MethodgetCalendarTypesForTimeType
Description

Gets the list of calendar types supported for a given time type where they are both used in a DateTime.

Parametersosid.type.TypetimeTypethe type of the time system
Returnosid.type.TypeListthe list of supported calendar types
ErrorsNULL_ARGUMENT timeType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarTimeTypes
Description

Tests if a given calendar and time type are used together in a DateTime.

Parametersosid.type.TypecalendarTypethe type of the calendar
osid.type.TypetimeTypethe type of the time system
Returnboolean true if the given calendar and time types are supported, false otherwise
ErrorsNULL_ARGUMENT calendarType or timeType is null
CompliancemandatoryThis method must be implemented.
MethodsupportsCoordinateTypesForConversion
Description

Tests if a given coordinate type for conversion is supported.

Parametersosid.type.TypesourceCoordinateTypethe type of the source coordinate
osid.type.TypetargetCoordinateTypethe type of the target coordinate
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceCoordinateType or targetCoordinateType is null
CompliancemandatoryThis method must be implemented.
MethodgetCoordinateTypesForSource
Description

Gets the list of target coordinate types for a given source coordinate type.

Parametersosid.type.TypesourceCoordinateTypethe type of the source coordinate
Returnosid.type.TypeListthe list of supported target coordinate types
ErrorsNULL_ARGUMENT sourceCoordinateType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceCoordinateTypes
Description

Gets the list of source coordinate types.

Returnosid.type.TypeListthe list of supported source coordinate types
CompliancemandatoryThis method must be implemented.
MethodsupportsSpatialUnitRecordTypesForConversion
Description

Tests if a given spatial unit conversion is supported.

Parametersosid.type.TypesourceSpatialUnitRecordTypethe type of the source spatial unit record
osid.type.TypetargetSpatialUnitRecordTypethe type of the target spatial unit record
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceSpatialUnitRecordType or targetSpatialUnitRecordType is null
CompliancemandatoryThis method must be implemented.
MethodgetSpatialUnitRecordTypesForSource
Description

Gets the list of target spatial unit types for a given source spatial unit type.

Parametersosid.type.TypesourceSpatialUnitRecordTypethe type of the source spatial unit record
Returnosid.type.TypeListthe list of supported target spatial unit record types
ErrorsNULL_ARGUMENT sourceSpatialUnitRecordType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceSpatialUnitRecordTypes
Description

Gets the list of source spatial unit record types.

Returnosid.type.TypeListthe list of supported source spatial unit record types
CompliancemandatoryThis method must be implemented.
MethodsupportsFormatTypesForConversion
Description

Tests if a given format conversion is supported.

Parametersosid.type.TypesourceFormatTypethe type of the source format
osid.type.TypetargetFormatTypethe type of the target format
Returnboolean true if the given source and target conversion is supported, false otherwise
ErrorsNULL_ARGUMENT sourceFormatType or targetFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetFormatTypesForSource
Description

Gets the list of target format types for a given source spatial unit type.

Parametersosid.type.TypesourceFormatTypethe type of the source format
Returnosid.type.TypeListthe list of supported target format types
ErrorsNULL_ARGUMENT sourceFormatType is null
CompliancemandatoryThis method must be implemented.
MethodgetSourceFormatTypes
Description

Gets the list of source format types.

Returnosid.type.TypeListthe list of supported source format types
CompliancemandatoryThis method must be implemented.