OSID Logo
OSID Specifications
configuration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.ValueForm
Implementsosid.OsidObjectForm
osid.OsidOperableForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating Values. Various data elements may be set here for use in the create and update methods in the ValueAdminSession For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetPriorityMetadata
Description

Gets the metadata for the value priority. The metadata returned may depend on the state of the shuffle behavior.

Returnosid.Metadatametadata for the priority
CompliancemandatoryThis method must be implemented.
MethodsetPriority
Description

Sets the priority.

Parameterscardinalprioritythe new priority
ErrorsINVALID_ARGUMENT priority is invalid
NO_ACCESS priority cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearPriority
Description

Clears the priority.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetBooleanValueMetadata
Description

Gets the metadata for a boolean value.

Returnosid.Metadatametadata for a boolean
ErrorsILLEGAL_STATE Parameter.getSyntax() != BOOLEAN
CompliancemandatoryThis method must be implemented.
MethodsetBooleanValue
Description

Sets a boolean value.

Parametersbooleanvaluethe new boolean value
ErrorsILLEGAL_STATE Parameter.getSyntax() != BOOLEAN
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetByteValueMetadata
Description

Gets the metadata for a byte value.

Returnosid.Metadatametadata for a byte
ErrorsILLEGAL_STATE Parameter.getSyntax() != BYTE
CompliancemandatoryThis method must be implemented.
MethodsetBytesValue
Description

Sets a byte value.

Parametersbyte[]valuethe new byte value
ErrorsILLEGAL_STATE Parameter.getSyntax() != BYTE
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetCardinalValueMetadata
Description

Gets the metadata for a cardinal value.

Returnosid.Metadatametadata for a cardinal
ErrorsILLEGAL_STATE Parameter.getSyntax() != CARDINAL
CompliancemandatoryThis method must be implemented.
MethodsetCardinalValue
Description

Sets a cardinal value.

Parameterscardinalvaluethe new cardinal value
ErrorsILLEGAL_STATE Parameter.getSyntax() != CARDINAL
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetCoordinateValueMetadata
Description

Gets the metadata for a coordinate value.

Returnosid.Metadatametadata for a coordinate
ErrorsILLEGAL_STATE Parameter.getSyntax() != COORDINATE
CompliancemandatoryThis method must be implemented.
MethodsetCoordinateValue
Description

Sets a coordinate value.

Parametersosid.mapping.Coordinatevaluethe new coordinate value
ErrorsILLEGAL_STATE Parameter.getSyntax() != COORDINATE
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetCurrencyValueMetadata
Description

Gets the metadata for a currency value.

Returnosid.Metadatametadata for a currency
ErrorsILLEGAL_STATE Parameter.getSyntax() != CURRENCY
CompliancemandatoryThis method must be implemented.
MethodsetCurrencyValue
Description

Sets a currency value.

Parametersosid.financials.Currencyvaluethe new currency value
ErrorsILLEGAL_STATE Parameter.getSyntax() != CURRENCY
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetDateTimeValueMetadata
Description

Gets the metadata for a DateTime value.

Returnosid.Metadatametadata for a datetime
ErrorsILLEGAL_STATE Parameter.getSyntax() != DATETIME
CompliancemandatoryThis method must be implemented.
MethodsetDateTimeValue
Description

Sets a DateTime value.

Parametersosid.calendaring.DateTimevaluethe new datetime value
ErrorsILLEGAL_STATE Parameter.getSyntax() != DATETIME
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetDecimalValueMetadata
Description

Gets the metadata for a decimal value.

Returnosid.Metadatametadata for a decimal
ErrorsILLEGAL_STATE Parameter.getSyntax() != DECIMAL
CompliancemandatoryThis method must be implemented.
MethodsetDecimalValue
Description

Sets a decimal value.

Parametersdecimalvaluethe new decimal value
ErrorsILLEGAL_STATE Parameter.getSyntax() != DECIMAL
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetDistanceValueMetadata
Description

Gets the metadata for a Distance value.

Returnosid.Metadatametadata for a distance
ErrorsILLEGAL_STATE Parameter.getSyntax() != DISTANCE
CompliancemandatoryThis method must be implemented.
MethodsetDistanceValue
Description

Sets a Distance value.

Parametersosid.mapping.Distancevaluethe new distance value
ErrorsILLEGAL_STATE Parameter.getSyntax() != DISTANCE
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetDurationValueMetadata
Description

Gets the metadata for a Duration value.

Returnosid.Metadatametadata for a duration
ErrorsILLEGAL_STATE Parameter.getSyntax() != DURATION
CompliancemandatoryThis method must be implemented.
MethodsetDurationValue
Description

Sets a Duration value.

Parametersosid.calendaring.Durationvaluethe new duration value
ErrorsILLEGAL_STATE Parameter.getSyntax() != DURATION
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetIdValueMetadata
Description

Gets the metadata for an Id value.

Returnosid.Metadatametadata for an Id
ErrorsILLEGAL_STATE Parameter.getSyntax() != ID
CompliancemandatoryThis method must be implemented.
MethodsetIdValue
Description

Sets an Id value.

Parametersosid.id.Idvaluethe new Id value
ErrorsILLEGAL_STATE Parameter.getSyntax() != ID
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetIntegerValueMetadata
Description

Gets the metadata for an integer value.

Returnosid.Metadatametadata for an integer
ErrorsILLEGAL_STATE Parameter.getSyntax() != INTEGER
CompliancemandatoryThis method must be implemented.
MethodsetIntegerValue
Description

Sets an integer value.

Parametersintegervaluethe new integer value
ErrorsILLEGAL_STATE Parameter.getSyntax() != INTEGER
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetSpatialUnitValueMetadata
Description

Gets the metadata for a spatial unit value.

Returnosid.Metadatametadata for a spatial unit
ErrorsILLEGAL_STATE Parameter.getSyntax() != SPATIALUNIT
CompliancemandatoryThis method must be implemented.
MethodsetSpatialUnitValue
Description

Sets a spatial unit value.

Parametersosid.mapping.SpatialUnitvaluethe new spatial unit value
ErrorsILLEGAL_STATE Parameter.getSyntax() != SPATIALUNIT
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetSpeedValueMetadata
Description

Gets the metadata for a speed value.

Returnosid.Metadatametadata for a speed
ErrorsILLEGAL_STATE Parameter.getSyntax() != SPEED
CompliancemandatoryThis method must be implemented.
MethodsetSpeedValue
Description

Sets a speed value.

Parametersosid.mapping.Speedvaluethe new speed value
ErrorsILLEGAL_STATE Parameter.getSyntax() != SPEED
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetStringValueMetadata
Description

Gets the metadata for a string value.

Returnosid.Metadatametadata for a string
ErrorsILLEGAL_STATE Parameter.getSyntax() != STRING
CompliancemandatoryThis method must be implemented.
MethodsetStringValue
Description

Sets a string value.

Parametersstringvaluethe new string value
ErrorsILLEGAL_STATE Parameter.getSyntax() != STRING
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetTimeValueMetadata
Description

Gets the metadata for a Time value.

Returnosid.Metadatametadata for a Time
ErrorsILLEGAL_STATE Parameter.getSyntax() != TIME
CompliancemandatoryThis method must be implemented.
MethodsetTimeValue
Description

Sets a Time value.

Parametersosid.calendaring.Timevaluethe new Time value
ErrorsILLEGAL_STATE Parameter.getSyntax() != TIME
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetTypeValueMetadata
Description

Gets the metadata for a Type value.

Returnosid.Metadatametadata for a Type
ErrorsILLEGAL_STATE Parameter.getSyntax() != TYPE
CompliancemandatoryThis method must be implemented.
MethodsetTypeValue
Description

Sets a Type value.

Parametersosid.type.Typevaluethe new Type value
ErrorsILLEGAL_STATE Parameter.getSyntax() != TYPE
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetVersionValueMetadata
Description

Gets the metadata for a Version value.

Returnosid.Metadatametadata for a Version
ErrorsILLEGAL_STATE Parameter.getSyntax() != VERSION
CompliancemandatoryThis method must be implemented.
MethodsetVersionValue
Description

Sets a Version value.

Parametersosid.installation.Versionvaluethe new Version value
ErrorsILLEGAL_STATE Parameter.getSyntax() != VERSION
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value is null
CompliancemandatoryThis method must be implemented.
MethodgetObjectValueMetadata
Description

Gets the metadata for an object value.

Returnosid.Metadatametadata for an object
ErrorsILLEGAL_STATE Parameter.getSyntax() != OBJECT
CompliancemandatoryThis method must be implemented.
MethodsetObjectValue
Description

Sets an object value.

Parametersobjectvaluethe new object value
osid.type.TypeobjectTypethe object type
ErrorsILLEGAL_STATE Parameter.getSyntax() != OBJECT
INVALID_ARGUMENT value is invalid
NO_ACCESS value cannot be modified
NULL_ARGUMENT value or objectType is null
UNSUPPORTED Metadata.supportsObjectType(objectType) is false
CompliancemandatoryThis method must be implemented.
MethodclearValue
Description

Clears the value.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetValueFormRecord
Description

Gets the ValueFormRecord corresponding to the given value record Type.

Parametersosid.type.TypevalueRecordTypea value record type
Returnosid.configuration.records.ValueFormRecordthe value form record
ErrorsNULL_ARGUMENT valueRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(valueRecordType) is false
CompliancemandatoryThis method must be implemented.