OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.SettingForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Implemented Byosid.control.batch.SettingBatchForm
Used Byosid.control.SettingAdminSession
Description

This is the form for creating and updating settings. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the SettingAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetOnMetadata
Description

Gets the metadata for the on status.

Returnosid.Metadata metadata for the on status
Compliancemandatory This method must be implemented.
MethodsetOn
Description

Sets the on status.

Parametersbooleanon the new on status
ErrorsINVALID_ARGUMENT on is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearOn
Description

Removes the on status.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetOffMetadata
Description

Gets the metadata for the off status.

Returnosid.Metadata metadata for the off status
Compliancemandatory This method must be implemented.
MethodsetOff
Description

Sets the off status.

Parametersbooleanoff the new off status
ErrorsINVALID_ARGUMENT off is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearOff
Description

Removes the off status.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetVariablePercentageMetadata
Description

Gets the metadata for the percentage amount.

Returnosid.Metadata metadata for the percentage amount
Compliancemandatory This method must be implemented.
MethodsetVariablePercentage
Description

Sets the percentage amount.

Parametersdecimalamount the new percentage amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearVariablePercentage
Description

Removes the percentage amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetVariableAmountMetadata
Description

Gets the metadata for the variable amount.

Returnosid.Metadata metadata for the variable amount
Compliancemandatory This method must be implemented.
MethodsetVariableAmount
Description

Sets the variable amount.

Parametersdecimalamount the new variable amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearVariableAmount
Description

Removes the variable amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDiscreetMetadata
Description

Gets the metadata for the state.

Returnosid.Metadata metadata for the state
Compliancemandatory This method must be implemented.
MethodsetDiscreetState
Description

Sets the state.

Parametersosid.id.IdstateId the new state
ErrorsINVALID_ARGUMENT stateId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT stateId is null
Compliancemandatory This method must be implemented.
MethodclearDiscreetState
Description

Removes the discreet state.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetRampRateMetadata
Description

Gets the metadata for the ramp rate.

Returnosid.Metadata metadata for the ramp rate
Compliancemandatory This method must be implemented.
MethodsetRampRate
Description

Sets the ramp rate.

Parametersosid.calendaring.Durationrate the new ramp rate
ErrorsINVALID_ARGUMENT rate is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT rate is null
Compliancemandatory This method must be implemented.
MethodclearRampRate
Description

Removes the ramp rate.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetSettingFormRecord
Description

Gets the SettingFormRecord corresponding to the given setting record Type.

Parametersosid.type.TypesettingRecordType a setting record type
Returnosid.control.records.SettingFormRecord the setting form record
ErrorsNULL_ARGUMENT settingRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(settingRecordType) is false
Compliancemandatory This method must be implemented.