OSID Logo
OSID Specifications
configuration package
Version 3.1.0
Interfaceosid.configuration.Value
Implementsosid.OsidObject
osid.Operable
osid.Subjugateable
Used Byosid.configuration.ValueAdminSession
osid.configuration.ValueList
osid.configuration.ValueLookupSession
osid.configuration.ValueRetrievalSession
Description

This interface specifies the value of a configuration parameter.

MethodgetParameterId
Description

Gets the parameter Id of this value.

Returnosid.id.Id the parameter Id
Compliancemandatory This method must be implemented.
MethodgetParameter
Description

Gets the parameter of this value.

Returnosid.configuration.Parameter the parameter
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPriority
Description

Gets the priority of this value. If the values for this parameter are not shuffled, the priority indicates a static ordering of the values from lowest to highest. If the values for this parameter are shuffled, the priority effects the weight with greater numbers having greater weights.

Returncardinal the index of this value
Compliancemandatory This method must be implemented.
MethodgetBooleanValue
Description

Gets the value if it is a boolean.

Returnboolean the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= BOOLEAN
Compliancemandatory This method must be implemented.
MethodgetBytesValue
Description

Gets the value if it is a byte.

Returnbyte[] the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= BYTE
Compliancemandatory This method must be implemented.
MethodgetCardinalValue
Description

Gets the value if it is a cardinal.

Returncardinal the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= CARDINAL
Compliancemandatory This method must be implemented.
MethodgetCoordinateValue
Description

Gets the value if it is a coordinate.

Returnosid.mapping.Coordinate the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= COORDINATE
Compliancemandatory This method must be implemented.
MethodgetCurrencyValue
Description

Gets the value if it is a currency.

Returnosid.financials.Currency the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= CURRENCY
Compliancemandatory This method must be implemented.
MethodgetDateTimeValue
Description

Gets the value if it is a DateTime.

Returnosid.calendaring.DateTime the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= DATETIME
Compliancemandatory This method must be implemented.
MethodgetDecimalValue
Description

Gets the value if it is a decimal.

Returndecimal the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= DECIMAL
Compliancemandatory This method must be implemented.
MethodgetDisplayTextValue
Description

Gets the value if it is a display text.

Returnosid.locale.DisplayText the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= DISPLAYTEXT
Compliancemandatory This method must be implemented.
MethodgetDistanceValue
Description

Gets the value if it is a Distance.

Returnosid.mapping.Distance the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= DISTANCE
Compliancemandatory This method must be implemented.
MethodgetDurationValue
Description

Gets the value if it is a Duration.

Returnosid.calendaring.Duration the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= DURATION
Compliancemandatory This method must be implemented.
MethodgetHeadingValue
Description

Gets the value if it is a Heading.

Returnosid.mapping.Heading the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= HEADING
Compliancemandatory This method must be implemented.
MethodgetIdValue
Description

Gets the value if it is an Id.

Returnosid.id.Id the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= ID
Compliancemandatory This method must be implemented.
MethodgetIntegerValue
Description

Gets the value if it is an integer.

Returninteger the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= INTEGER
Compliancemandatory This method must be implemented.
MethodgetObjectValue
Description

Gets the value if it is an object.

Returnobject the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= OBJECT
Compliancemandatory This method must be implemented.
MethodgetSpatialUnitValue
Description

Gets the value if it is a spatial unit.

Returnosid.mapping.SpatialUnit the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= SPATIALUNIT
Compliancemandatory This method must be implemented.
MethodgetSpeedValue
Description

Gets the value if it is a speed.

Returnosid.mapping.Speed the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= SPEED
Compliancemandatory This method must be implemented.
MethodgetStringValue
Description

Gets the value if it is a string.

Returnstring the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= STRING
Compliancemandatory This method must be implemented.
MethodgetTimeValue
Description

Gets the value if it is a time.

Returnosid.calendaring.Time the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= TIME
Compliancemandatory This method must be implemented.
MethodgetTypeValue
Description

Gets the value if it is a Type.

Returnosid.type.Type the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= TYPE
Compliancemandatory This method must be implemented.
MethodgetVersionValue
Description

Gets the value if it is a version.

Returnosid.installation.Version the value
ErrorsILLEGAL_STATE Parameter.getSyntax()!= VERSION
Compliancemandatory This method must be implemented.
MethodgetValueRecord
Description

Gets the value record corresponding to the given Value record Type.This method is used to retrieve an object implementing the requested record. The valueRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(valueRecordType) is true.

Parametersosid.type.TypevalueRecordType the type of value record to retrieve
Returnosid.configuration.records.ValueRecord the value record
ErrorsNULL_ARGUMENT valueRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(valueRecordType) is false
Compliancemandatory This method must be implemented.