Interface LocaleProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, LocaleProfile, OsidProfile, OsidProxyManager, OsidProxyManager, Sourceable
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: asession 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
LocaleProxyManager may be accessed by multiple processing threads.-
Method Summary
Modifier and TypeMethodDescriptionGets a calendar conversion session.getCalendarConversionSessionForType(Type sourceCalendarType, Type sourceTimeType, Type targetCalendarType, Type targetTimeType, Proxy proxy) Gets anOsidSessionassociated with the calendar conversion service and the given calendar types.Gets anOsidSessionassociated with the calendar formatting service.getCalendarFormattingSessionForType(Type calendarType, Type calendarFormatType, Type timeType, Type timeFormatType, Proxy proxy) Gets anOsidSessionassociated with the calendar formatting service and the given calendar and time types.getCalendarInfoSession(Proxy proxy) Gets a calendar informational session session.getCalendarInfoSessionForType(Type calendarType, Type timeType, Proxy proxy) Gets anOsidSessionassociated with the calendar informational service and the given calendar and time types.Gets a coordinate conversion session.getCoordinateConversionSessionForType(Type sourceCoordinateType, Type targetCoordinateType, Proxy proxy) Gets anOsidSessionassociated with the coordinate conversion service and the given coordinate types.Gets anOsidSessionassociated with the coordinate formatting service.getCoordinateFormattingSessionForType(Type coordinateType, Type coordinateFormatType, Proxy proxy) Gets anOsidSessionassociated with the coordinate formatting service and the given coordinate and format types.Gets a currency conversion session.getCurrencyConversionSessionForType(Type sourceCurrencyType, Type targetCurrencyType, Proxy proxy) Gets anOsidSessionassociated with the currency conversion service and the given currency types.Gets anOsidSessionassociated with the currency formatting service.getCurrencyFormattingSessionForType(Type currencyType, Type numericFormatType, Proxy proxy) Gets anOsidSessionassociated with the currency formatting service and the given currency and numeric format types.getFormatConversionSession(Proxy proxy) Gets a text format conversion session.getFormatConversionSessionForType(Type sourceFormatType, Type targetFormatType, Proxy proxy) Gets anOsidSessionassociated with the text format conversion service and the given format types.getNumericFormattingSession(Proxy proxy) Gets anOsidSessionassociated with the numeric formatting service.getNumericFormattingSessionForType(Type numericFormatType, Proxy proxy) Gets anOsidSessionassociated with the numeric formatting service and the given numeric format type.Gets a spatial unit conversion session.getSpatialUnitConversionSessionForType(Type sourceSpatialUnitRecordType, Type targetSpatialUnitRecordType, Proxy proxy) Gets anOsidSessionassociated with the spatial unit conversion service and the given spatial unit record types.getTranslationAdminSession(Proxy proxy) Gets a language translation administration service for updating a locale dictionary.getTranslationAdminSessionForType(Type sourceLanguageType, Type sourceScriptType, Type targetLanguageType, Type targetScriptType, Proxy proxy) Gets a language trabslation administration service for updating a locale dictionary using the given language and script types.getTranslationSession(Proxy proxy) Gets anOsidSessionassociated with the language translation service.getTranslationSessionForType(Type sourceLanguageType, Type sourceScriptType, Type targetLanguageType, Type targetScriptType, Proxy proxy) Gets anOsidSessionassociated with the language translation service and the given language and script types.getUnitConversionSession(Proxy proxy) Gets a unit conversion session.Methods inherited from interface LocaleProfile
getCalendarTypesForFormatting, getCalendarTypesForSource, getCalendarTypesForTimeType, getCoordinateFormatTypesForCoordinateType, getCoordinateTypesForFormatting, getCoordinateTypesForSource, getCurrencyFormatTypesForCurrencyType, getCurrencyTypesForFormatting, getCurrencyTypesForSource, getDateFormatTypesForCalendarType, getFormatTypesForSource, getLanguageTypesForSource, getNumericFormatTypes, getScriptTypesForLanguageType, getSourceCalendarTypes, getSourceCoordinateTypes, getSourceCurrencyTypes, getSourceFormatTypes, getSourceLanguageTypes, getSourceSpatialUnitRecordTypes, getSourceTimeTypes, getSourceUnitTypes, getSpatialUnitRecordTypesForSource, getTimeFormatTypesForTimeType, getTimeTypesForCalendarType, getTimeTypesForFormatting, getTimeTypesForSource, getUnitTypesForSource, supportsCalendarConversion, supportsCalendarFormatting, supportsCalendarInfo, supportsCalendarTimeTypes, supportsCalendarTypesForConversion, supportsCalendarTypesForFormatting, supportsCoordinateConversion, supportsCoordinateFormatting, supportsCoordinateTypesForConversion, supportsCoordinateTypesForFormatting, supportsCurrencyConversion, supportsCurrencyFormatting, supportsCurrencyTypesForConversion, supportsCurrencyTypesForFormatting, supportsFormatConversion, supportsFormatTypesForConversion, supportsLanguageTypesForTranslation, supportsNumericFormatting, supportsNumericFormatTypes, supportsSpatialUnitConversion, supportsSpatialUnitRecordTypesForConversion, supportsTimeTypesForConversion, supportsTranslation, supportsTranslationAdmin, supportsUnitConversion, supportsUnitTypesForConversion, supportsVisibleFederationMethods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersionMethods inherited from interface OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, getProxy, getProxyCondition, initialize, rollbackServiceMethods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
-
Method Details
-
getTranslationSession
Gets anOsidSessionassociated with the language translation service.- Parameters:
proxy- a proxy- Returns:
- a
TranslationSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsTranslation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTranslation()} is {@code true}.
-
getTranslationSessionForType
TranslationSession getTranslationSessionForType(Type sourceLanguageType, Type sourceScriptType, Type targetLanguageType, Type targetScriptType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the language translation service and the given language and script types.- Parameters:
sourceLanguageType- the type of the source languagesourceScriptType- the type of the source scripttargetLanguageType- the type of the target languagetargetScriptType- the type of the target scriptproxy- a proxy- Returns:
- a
TranslationSession - Throws:
NullArgumentException-sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsTranslation()orsupportsVisibleFederation()isfalseUnsupportedException-supportsLanguageTypesForTranslation(sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsTranslation()} and {@code supportsVisibleFederation()} are {@code true}.
-
getTranslationAdminSession
Gets a language translation administration service for updating a locale dictionary.- Parameters:
proxy- a proxy- Returns:
- a
TranslationAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsTranslationAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTranslationAdmin()} is {@code true}.
-
getTranslationAdminSessionForType
TranslationAdminSession getTranslationAdminSessionForType(Type sourceLanguageType, Type sourceScriptType, Type targetLanguageType, Type targetScriptType, Proxy proxy) throws OperationFailedException Gets a language trabslation administration service for updating a locale dictionary using the given language and script types.- Parameters:
sourceLanguageType- the type of the source languagesourceScriptType- the type of the source scripttargetLanguageType- the type of the target languagetargetScriptType- the type of the target scriptproxy- a proxy- Returns:
- a
TranslationAdminSession - Throws:
NullArgumentException-sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsTranslationAdmin()orsupportsVisibleFederation()isfalseUnsupportedException-supportsLanguageTypesForTranslation(sourceLanguageType, sourceScriptType, targetLanguageType, targetScriptType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsTranslationAdmin()} and {@code supportsVisibleFederation()} are {@code true}.
-
getNumericFormattingSession
Gets anOsidSessionassociated with the numeric formatting service.- Parameters:
proxy- a proxy- Returns:
- a
NumericFormattingSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsNumericFormatting()isfalse- Compliance:
optional- This method must be implemented if {@code supportsNumericFormatting()} is {@code true}.
-
getNumericFormattingSessionForType
NumericFormattingSession getNumericFormattingSessionForType(Type numericFormatType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the numeric formatting service and the given numeric format type.- Parameters:
numericFormatType- the type of the numeric formatproxy- a proxy- Returns:
- a
NumericFormattingSession - Throws:
NullArgumentException-numericFormatTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsNumericFormatting()orsupportsVisibleFederation()isfalseUnsupportedException-supportsNumericFormatType(numericFormatType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsNumericFormatting()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCalendarFormattingSession
Gets anOsidSessionassociated with the calendar formatting service.- Parameters:
proxy- a proxy- Returns:
- a
CalendarFormattingSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarFormatting()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarFormatting()} is {@code true}.
-
getCalendarFormattingSessionForType
CalendarFormattingSession getCalendarFormattingSessionForType(Type calendarType, Type calendarFormatType, Type timeType, Type timeFormatType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the calendar formatting service and the given calendar and time types.- Parameters:
calendarType- the type of the calendarcalendarFormatType- the type of the calendar formattimeType- the type of the time systemtimeFormatType- the type of the time formatproxy- a proxy- Returns:
- a
CalendarFormattingSession - Throws:
NullArgumentException-calendarType, calendarFormatType, timeTyp, timeFormatTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarFormatting()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCalendarTypesForFormattinge(calendarType, calendarFormatType, timeType, timeFormatType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarFormatting()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCurrencyFormattingSession
Gets anOsidSessionassociated with the currency formatting service.- Parameters:
proxy- a proxy- Returns:
- a
CurrencyFormattingSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCurrencyFormatting()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCurrencyFormatting()} is {@code true}.
-
getCurrencyFormattingSessionForType
CurrencyFormattingSession getCurrencyFormattingSessionForType(Type currencyType, Type numericFormatType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the currency formatting service and the given currency and numeric format types.- Parameters:
currencyType- the type of the currencynumericFormatType- the type of the numeric formatproxy- a proxy- Returns:
- a
CurrencyFormattingSession - Throws:
NullArgumentException-currencyType, numericFormatTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCurrencyFormatting()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCurrencyTypesForFomatting(currencyType, numericFormatType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCurrencyFormatting()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCoordinateFormattingSession
CoordinateFormattingSession getCoordinateFormattingSession(Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the coordinate formatting service.- Parameters:
proxy- a proxy- Returns:
- a
CoordinateFormattingSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCoordinateFormatting()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCoordinateFormatting()} is {@code true}.
-
getCoordinateFormattingSessionForType
CoordinateFormattingSession getCoordinateFormattingSessionForType(Type coordinateType, Type coordinateFormatType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the coordinate formatting service and the given coordinate and format types.- Parameters:
coordinateType- the type of the coordinatecoordinateFormatType- the type of the coordinate formatproxy- a proxy- Returns:
- a
CoordinateFormattingSession - Throws:
NullArgumentException-coordinateType, coordinateFormatType,orproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCoordinateFormatting()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCoordinateTypesForFomatting(coordinateType, coordinateFormatType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCoordinateFormatting()} and {@code supportsVisibleFederation()} are {@code true}.
-
getUnitConversionSession
Gets a unit conversion session.- Parameters:
proxy- a proxy- Returns:
- a
UnitConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsUnitConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsUnitConversion()} is {@code true}.
-
getCurrencyConversionSession
Gets a currency conversion session.- Parameters:
proxy- a proxy- Returns:
- a
CurrencyConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCurrencyConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCurrencyConversion()} is {@code true}.
-
getCurrencyConversionSessionForType
CurrencyConversionSession getCurrencyConversionSessionForType(Type sourceCurrencyType, Type targetCurrencyType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the currency conversion service and the given currency types.- Parameters:
sourceCurrencyType- the type of the source currencytargetCurrencyType- the type of the target currencyproxy- a proxy- Returns:
- a
CurrencyConversionSession - Throws:
NullArgumentException-sourceCurrencyType, targetCurrencyTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCurrencyConversion()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCurrencyTypesForConversion(sourceCurrencyType, targetCurrencyType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCurrencyConversion()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCalendarConversionSession
Gets a calendar conversion session.- Parameters:
proxy- a proxy- Returns:
- a
CalendarConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarConversion()} is {@code true}.
-
getCalendarConversionSessionForType
CalendarConversionSession getCalendarConversionSessionForType(Type sourceCalendarType, Type sourceTimeType, Type targetCalendarType, Type targetTimeType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the calendar conversion service and the given calendar types.- Parameters:
sourceCalendarType- the type of the source calendarsourceTimeType- the type of the source timetargetCalendarType- the type of the target calendartargetTimeType- the type of the target timeproxy- a proxy- Returns:
- a
CalendarConversionSession - Throws:
NullArgumentException-sourceCalendarType, sourceTimeType, targetCalendarType, targetTimeTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarConversion()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCalendarTypesForConversion(sourceCalendarType, targetCalendarType)orsupportsTimeTypesForConversion(sourceTimeType, targetTimeType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarConversion()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCoordinateConversionSession
CoordinateConversionSession getCoordinateConversionSession(Proxy proxy) throws OperationFailedException Gets a coordinate conversion session.- Parameters:
proxy- a proxy- Returns:
- a
CoordinateConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCoordinateConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCoordinateConversion()} is {@code true}.
-
getCoordinateConversionSessionForType
CoordinateConversionSession getCoordinateConversionSessionForType(Type sourceCoordinateType, Type targetCoordinateType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the coordinate conversion service and the given coordinate types.- Parameters:
sourceCoordinateType- the type of the source coordinatetargetCoordinateType- the type of the target coordinateproxy- a proxy- Returns:
- a
CoordinateConversionSession - Throws:
NullArgumentException-sourceCoordinateType,targetCoordinateType, orproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCoordinateConversion()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCoordinateRecordTypesForConversion(sourceCoordinateType, targetCoordinateType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCoordinateConversion()} and {@code supportsVisibleFederation()} are {@code true}.
-
getSpatialUnitConversionSession
SpatialUnitConversionSession getSpatialUnitConversionSession(Proxy proxy) throws OperationFailedException Gets a spatial unit conversion session.- Parameters:
proxy- a proxy- Returns:
- a
SpatialUnitConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsSpatialUnitConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSpatialUnitConversion()} is {@code true}.
-
getSpatialUnitConversionSessionForType
SpatialUnitConversionSession getSpatialUnitConversionSessionForType(Type sourceSpatialUnitRecordType, Type targetSpatialUnitRecordType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the spatial unit conversion service and the given spatial unit record types.- Parameters:
sourceSpatialUnitRecordType- the type of the source spatial unit recordtargetSpatialUnitRecordType- the type of the target spatial unit recordproxy- a proxy- Returns:
- a
SpatialUnitConversionSession - Throws:
NullArgumentException-sourceSpatialUnitRecordType,targetSpatialUnitRecordType orproxy isnullOperationFailedException- unable to complete requestUnimplementedException-supportsSpatialUnitConversion()orsupportsVisibleFederation()isfalseUnsupportedException-supportsSpatialUnitRecordTypesForConversion(sourceSpatialUnitRecordType, targetSpatialUnitRecordType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsSpatialUnitConversion()} and {@code supportsVisibleFederation()} are {@code true}.
-
getFormatConversionSession
Gets a text format conversion session.- Parameters:
proxy- a proxy- Returns:
- a
FormatConversionSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsFormatConversion()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFormatConversion()} is {@code true}.
-
getFormatConversionSessionForType
FormatConversionSession getFormatConversionSessionForType(Type sourceFormatType, Type targetFormatType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the text format conversion service and the given format types.- Parameters:
sourceFormatType- the type of the text formattargetFormatType- the type of the text formatproxy- a proxy- Returns:
- a
FormatConversionSession - Throws:
NullArgumentException-sourceFormatType, targetFormatTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsFormatConversion()orsupportsVisibleFederation()isfalseUnsupportedException-supportsFormatTypesForConversion(sourceFormatType, targetFormatRecordType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsFormatConversion()} and {@code supportsVisibleFederation()} are {@code true}.
-
getCalendarInfoSession
Gets a calendar informational session session.- Parameters:
proxy- a proxy- Returns:
- a
CalendarInfoSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarInfo()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarInfo()} is {@code true}.
-
getCalendarInfoSessionForType
CalendarInfoSession getCalendarInfoSessionForType(Type calendarType, Type timeType, Proxy proxy) throws OperationFailedException Gets anOsidSessionassociated with the calendar informational service and the given calendar and time types.- Parameters:
calendarType- the type of the calendartimeType- the type of the time systemproxy- a proxy- Returns:
- a
CalendarInfoSession - Throws:
NullArgumentException-calendarType, timeTypeorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCalendarType()orsupportsVisibleFederation()isfalseUnsupportedException-supportsCalendarTimeTypes(calendarType, timeType)isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarInfo()} and {@code supportsVisibleFederation()} are {@code true}.
-