OSID Logo
OSID Specifications
mapping package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.LocationForm
Implementsosid.OsidObjectForm
osid.OsidFederateableForm
Description

This is the form for creating and updating Locations. Like all OsidForm objects, 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.Metadatametadata for the spatial unit
CompliancemandatoryThis method must be implemented.
MethodsetSpatialUnit
Description

Sets the spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnitthe 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
CompliancemandatoryThis method must be implemented.
MethodclearSpatialUnit
Description

Removes the spatial unit.

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

Gets the LocationFormRecord corresponding to the given location record Type.

Parametersosid.type.TypelocationRecordTypea location record type
Returnosid.mapping.records.LocationFormRecordthe location form record
ErrorsNULL_ARGUMENT locationRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(locationRecordType) is false
CompliancemandatoryThis method must be implemented.