OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.LocationForm
Implementsosid.OsidObjectForm
osid.OsidFederateableForm
Implemented Byosid.mapping.batch.LocationBatchForm
Used Byosid.mapping.LocationAdminSession
Description

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

MethodgetSpatialUnitMetadata
Description

Gets the metadata for a spatial unit.

Returnosid.Metadata metadata for the spatial unit
Compliancemandatory This method must be implemented.
MethodsetSpatialUnit
Description

Sets the spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit the new spatial unit
ErrorsINVALID_ARGUMENT spatialUnit is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT spatialUnit is null
UNSUPPORTED spatialUnit type is not supported
Compliancemandatory This method must be implemented.
MethodclearSpatialUnit
Description

Removes the spatial unit.

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

Gets the LocationFormRecord corresponding to the given location record Type.

Parametersosid.type.TypelocationRecordType a location record type
Returnosid.mapping.records.LocationFormRecord the location form record
ErrorsNULL_ARGUMENT locationRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(locationRecordType) is false
Compliancemandatory This method must be implemented.