OSID Logo
OSID Specifications
locale package
Version 3.1.0
Interfaceosid.locale.CoordinateFormattingSession
Implementsosid.OsidSession
Used Byosid.locale.LocaleManager
osid.locale.LocaleProxyManager
Description

This session defines methods to format and parse coordinates.

MethodgetCoordinateType
Description

Gets the coordinate type used in this session.

Returnosid.type.Type the coordinate type
Compliancemandatory This method must be implemented.
MethodgetCoordinateFormatType
Description

Gets the coordinate format type used in this session.

Returnosid.type.Type the coordinate format type
Compliancemandatory This method must be implemented.
MethodcanFormatCoordinates
Description

Tests if this user can format and parse coordinates. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations.

Returnboolean false if translation methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcoordinateToString
Description

Gets a string representation of a coordinate.

Parametersosid.mapping.Coordinatecoordinate a coordinate value
Returnstring the display string
ErrorsINVALID_ARGUMENT coodrinate.hasRecordType(getCoordinateRecordType()) is false
NULL_ARGUMENT coordinate is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodccoordinatesToStrings
Description

Gets a string representation of a list of coordinates.

Parametersosid.mapping.CoordinateListcoordinates a list of coordinates
Returnstring[] the display strings
ErrorsINVALID_ARGUMENT coodrinate.hasRecordType(getCoordinateRecordType()) is false
NULL_ARGUMENT coordinates is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodstringToCoordinate
Description

Parses a coordinate.

Parametersstrings a coordinate string
Returnosid.mapping.Coordinate the display string
ErrorsINVALID_ARGUMENT s is not of getCoordinateFormatType()
NULL_ARGUMENT s is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.