OSID Logo
OSID Specifications
locale package
Version 3.1.0
Interfaceosid.locale.LocaleProxyManager
Implementsosid.OsidProxyManager
osid.locale.LocaleProfile
Used Byosid.orchestration.OrchestrationManager
Description

The locale manager provides access to locale sessions and provides interoperability tests for various aspects of this service. Methods in this manager support the passing of a Proxy for passing information from server environments. The sessions included in this manager are:

  • TranslationSession: a session translate strings
  • TranslationAdminSession: a session to update the string translations for a locale
  • NumericFormattingSession: a session for formatting and parsing numbers
  • CalendarFormattingSession: a session for formatting and parsing dates and times
  • CurrencyFormattingSession: a session for formatting and parsing currency amounts
  • CoordinateFormattingSession: a session for formatting and parsing coordinates
  • UnitConversionSession: a session to convert measurement units
  • CurrencyConversionSession: a session to convert currency
  • CalendarConversionSession: a session to convert dates across calendars
  • CoordinateConversionSession: a session to convert coordinate systems
  • SpatialUnitConversionSession: a session to convert spatial units
  • FormatConversionSession: a session to convert text formats
  • CalendarInfoSession: a session for examining calendaring and time systems
MethodgetTranslationSession
Description

Gets an OsidSession associated with the language translation service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.TranslationSession a TranslationSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsTranslation() is false
Complianceoptional This method must be implemented if supportsTranslation() is true.
MethodgetTranslationSessionForType
Description

Gets an OsidSession associated with the language translation service and the given language and script types.

Parametersosid.type.TypesourceLanguageType the type of the source language
osid.type.TypesourceScriptType the type of the source script
osid.type.TypetargetLanguageType the type of the target language
osid.type.TypetargetScriptType the type of the target script
osid.proxy.Proxyproxy a proxy
Returnosid.locale.TranslationSession a TranslationSession
ErrorsNULL_ARGUMENT sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsTranslation() or supportsVisibleFederation() is false
UNSUPPORTED supportsLanguageTypesForTranslation(sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType) is false
Complianceoptional This method must be implemented if supportsTranslation() and supportsVisibleFederation() are true.
MethodgetTranslationAdminSession
Description

Gets a language translation administration service for updating a locale dictionary.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.TranslationAdminSession a TranslationAdminSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsTranslationAdmin() is false
Complianceoptional This method must be implemented if supportsTranslationAdmin() is true.
MethodgetTranslationAdminSessionForType
Description

Gets a language trabslation administration service for updating a locale dictionary using the given language and script types.

Parametersosid.type.TypesourceLanguageType the type of the source language
osid.type.TypesourceScriptType the type of the source script
osid.type.TypetargetLanguageType the type of the target language
osid.type.TypetargetScriptType the type of the target script
osid.proxy.Proxyproxy a proxy
Returnosid.locale.TranslationAdminSession a TranslationAdminSession
ErrorsNULL_ARGUMENT sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsTranslationAdmin() or supportsVisibleFederation() is false
UNSUPPORTED supportsLanguageTypesForTranslation(sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType) is false
Complianceoptional This method must be implemented if supportsTranslationAdmin() and supportsVisibleFederation() are true.
MethodgetNumericFormattingSession
Description

Gets an OsidSession associated with the numeric formatting service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.NumericFormattingSession a NumericFormattingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsNumericFormatting() is false
Complianceoptional This method must be implemented if supportsNumericFormatting() is true.
MethodgetNumericFormattingSessionForType
Description

Gets an OsidSession associated with the numeric formatting service and the given numeric format type.

Parametersosid.type.TypenumericFormatType the type of the numeric format
osid.proxy.Proxyproxy a proxy
Returnosid.locale.NumericFormattingSession a NumericFormattingSession
ErrorsNULL_ARGUMENT numericFormatType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsNumericFormatting() or supportsVisibleFederation() is false
UNSUPPORTED supportsNumericFormatType(numericFormatType) is false
Complianceoptional This method must be implemented if supportsNumericFormatting() and supportsVisibleFederation() are true.
MethodgetCalendarFormattingSession
Description

Gets an OsidSession associated with the calendar formatting service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarFormattingSession a CalendarFormattingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarFormatting() is false
Complianceoptional This method must be implemented if supportsCalendarFormatting() is true.
MethodgetCalendarFormattingSessionForType
Description

Gets an OsidSession associated with the calendar formatting service and the given calendar and time types.

Parametersosid.type.TypecalendarType the type of the calendar
osid.type.TypecalendarFormatType the type of the calendar format
osid.type.TypetimeType the type of the time system
osid.type.TypetimeFormatType the type of the time format
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarFormattingSession a CalendarFormattingSession
ErrorsNULL_ARGUMENT calendarType, calendarFormatType, timeTyp, timeFormatType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarFormatting() or supportsVisibleFederation() is false
UNSUPPORTED supportsCalendarTypesForFormattinge(calendarType, calendarFormatType, timeType, timeFormatType) is false
Complianceoptional This method must be implemented if supportsCalendarFormatting() and supportsVisibleFederation() are true.
MethodgetCurrencyFormattingSession
Description

Gets an OsidSession associated with the currency formatting service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CurrencyFormattingSession a CurrencyFormattingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCurrencyFormatting() is false
Complianceoptional This method must be implemented if supportsCurrencyFormatting() is true.
MethodgetCurrencyFormattingSessionForType
Description

Gets an OsidSession associated with the currency formatting service and the given currency and numeric format types.

Parametersosid.type.TypecurrencyType the type of the currency
osid.type.TypenumericFormatType the type of the numeric format
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CurrencyFormattingSession a CurrencyFormattingSession
ErrorsNULL_ARGUMENT currencyType, numericFormatType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCurrencyFormatting() or supportsVisibleFederation() is false
UNSUPPORTED supportsCurrencyTypesForFomatting(currencyType, numericFormatType) is false
Complianceoptional This method must be implemented if supportsCurrencyFormatting() and supportsVisibleFederation() are true.
MethodgetCoordinateFormattingSession
Description

Gets an OsidSession associated with the coordinate formatting service.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CoordinateFormattingSession a CoordinateFormattingSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCoordinateFormatting() is false
Complianceoptional This method must be implemented if supportsCoordinateFormatting() is true.
MethodgetCoordinateFormattingSessionForType
Description

Gets an OsidSession associated with the coordinate formatting service and the given coordinate and format types.

Parametersosid.type.TypecoordinateType the type of the coordinate
osid.type.TypecoordinateFormatType the type of the coordinate format
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CoordinateFormattingSession a CoordinateFormattingSession
ErrorsNULL_ARGUMENT coordinateType, coordinateFormatType,or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCoordinateFormatting() or supportsVisibleFederation() is false
UNSUPPORTED supportsCoordinateTypesForFomatting(coordinateType, coordinateFormatType) is false
Complianceoptional This method must be implemented if supportsCoordinateFormatting() and supportsVisibleFederation() are true.
MethodgetUnitConversionSession
Description

Gets a unit conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.UnitConversionSession a UnitConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsUnitConversion() is false
Complianceoptional This method must be implemented if supportsUnitConversion() is true.
MethodgetCurrencyConversionSession
Description

Gets a currency conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CurrencyConversionSession a CurrencyConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCurrencyConversion() is false
Complianceoptional This method must be implemented if supportsCurrencyConversion() is true.
MethodgetCurrencyConversionSessionForType
Description

Gets an OsidSession associated with the currency conversion service and the given currency types.

Parametersosid.type.TypesourceCurrencyType the type of the source currency
osid.type.TypetargetCurrencyType the type of the target currency
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CurrencyConversionSession a CurrencyConversionSession
ErrorsNULL_ARGUMENT sourceCurrencyType, targetCurrencyType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCurrencyConversion() or supportsVisibleFederation() is false
UNSUPPORTED supportsCurrencyTypesForConversion(sourceCurrencyType, targetCurrencyType) is false
Complianceoptional This method must be implemented if supportsCurrencyConversion() and supportsVisibleFederation() are true.
MethodgetCalendarConversionSession
Description

Gets a calendar conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarConversionSession a CalendarConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarConversion() is false
Complianceoptional This method must be implemented if supportsCalendarConversion() is true.
MethodgetCalendarConversionSessionForType
Description

Gets an OsidSession associated with the calendar conversion service and the given calendar types.

Parametersosid.type.TypesourceCalendarType the type of the source calendar
osid.type.TypesourceTimeType the type of the source time
osid.type.TypetargetCalendarType the type of the target calendar
osid.type.TypetargetTimeType the type of the target time
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarConversionSession a CalendarConversionSession
ErrorsNULL_ARGUMENT sourceCalendarType, sourceTimeType, targetCalendarType, targetTimeType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarConversion() or supportsVisibleFederation() is false
UNSUPPORTED supportsCalendarTypesForConversion(sourceCalendarType, targetCalendarType) or supportsTimeTypesForConversion(sourceTimeType, targetTimeType) is false
Complianceoptional This method must be implemented if supportsCalendarConversion() and supportsVisibleFederation() are true.
MethodgetCoordinateConversionSession
Description

Gets a coordinate conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CoordinateConversionSession a CoordinateConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCoordinateConversion() is false
Complianceoptional This method must be implemented if supportsCoordinateConversion() is true.
MethodgetCoordinateConversionSessionForType
Description

Gets an OsidSession associated with the coordinate conversion service and the given coordinate types.

Parametersosid.type.TypesourceCoordinateType the type of the source coordinate
osid.type.TypetargetCoordinateType the type of the target coordinate
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CoordinateConversionSession a CoordinateConversionSession
ErrorsNULL_ARGUMENT sourceCoordinateType, targetCoordinateType, or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCoordinateConversion() or supportsVisibleFederation() is false
UNSUPPORTED supportsCoordinateRecordTypesForConversion(sourceCoordinateType, targetCoordinateType) is false
Complianceoptional This method must be implemented if supportsCoordinateConversion() and supportsVisibleFederation() are true.
MethodgetSpatialUnitConversionSession
Description

Gets a spatial unit conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.SpatialUnitConversionSession a SpatialUnitConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsSpatialUnitConversion() is false
Complianceoptional This method must be implemented if supportsSpatialUnitConversion() is true.
MethodgetSpatialUnitConversionSessionForType
Description

Gets an OsidSession associated with the spatial unit conversion service and the given spatial unit record types.

Parametersosid.type.TypesourceSpatialUnitRecordType the type of the source spatial unit record
osid.type.TypetargetSpatialUnitRecordType the type of the target spatial unit record
osid.proxy.Proxyproxy a proxy
Returnosid.locale.SpatialUnitConversionSession a SpatialUnitConversionSession
ErrorsNULL_ARGUMENT sourceSpatialUnitRecordType, targetSpatialUnitRecordType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsSpatialUnitConversion() or supportsVisibleFederation() is false
UNSUPPORTED supportsSpatialUnitRecordTypesForConversion(sourceSpatialUnitRecordType, targetSpatialUnitRecordType) is false
Complianceoptional This method must be implemented if supportsSpatialUnitConversion() and supportsVisibleFederation() are true.
MethodgetFormatConversionSession
Description

Gets a text format conversion session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.FormatConversionSession a FormatConversionSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFormatConversion() is false
Complianceoptional This method must be implemented if supportsFormatConversion() is true.
MethodgetFormatConversionSessionForType
Description

Gets an OsidSession associated with the text format conversion service and the given format types.

Parametersosid.type.TypesourceFormatType the type of the text format
osid.type.TypetargetFormatType the type of the text format
osid.proxy.Proxyproxy a proxy
Returnosid.locale.FormatConversionSession a FormatConversionSession
ErrorsNULL_ARGUMENT sourceFormatType, targetFormatType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFormatConversion() or supportsVisibleFederation() is false
UNSUPPORTED supportsFormatTypesForConversion(sourceFormatType, targetFormatRecordType) is false
Complianceoptional This method must be implemented if supportsFormatConversion() and supportsVisibleFederation() are true.
MethodgetCalendarInfoSession
Description

Gets a calendar informational session session.

Parametersosid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarInfoSession a CalendarInfoSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarInfo() is false
Complianceoptional This method must be implemented if supportsCalendarInfo() is true.
MethodgetCalendarInfoSessionForType
Description

Gets an OsidSession associated with the calendar informational service and the given calendar and time types.

Parametersosid.type.TypecalendarType the type of the calendar
osid.type.TypetimeType the type of the time system
osid.proxy.Proxyproxy a proxy
Returnosid.locale.CalendarInfoSession a CalendarInfoSession
ErrorsNULL_ARGUMENT calendarType, timeType or proxy is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCalendarType() or supportsVisibleFederation() is false
UNSUPPORTED supportsCalendarTimeTypes(calendarType, timeType) is false
Complianceoptional This method must be implemented if supportsCalendarInfo() and supportsVisibleFederation() are true.