OSID Logo
OSID Specifications
contact package
Version 3.0.0
Interfaceosid.contact.AddressForm
Implementsosid.OsidObjectForm
Implemented Byosid.contact.batch.AddressBatchForm
Used Byosid.contact.AddressAdminSession
Description

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

MethodgetResourceMetadata
Description

Gets the metadata for the resource.

Returnosid.Metadatametadata for the addressee
CompliancemandatoryThis method must be implemented.
MethodsetResource
Description

Sets the resource.

Parametersosid.id.IdresourceIda resource Id
ErrorsINVALID_ARGUMENTresourceId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearResource
Description

Clears the resource.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAddressTextMetadata
Description

Gets the metadata for the address text.

Returnosid.Metadatametadata for the address text
CompliancemandatoryThis method must be implemented.
MethodsetAddressText
Description

Sets the address text.

ParametersstringaddressTextthe address text
ErrorsINVALID_ARGUMENTaddressText is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTaddressText is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressText
Description

Clears the address text.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAddressFormRecord
Description

Gets the AddressFormRecord corresponding to the given address record Type .

Parametersosid.type.TypeaddressRecordTypethe address record type
Returnosid.contact.records.AddressFormRecordthe address form record
ErrorsNULL_ARGUMENTaddressRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(addressRecordType) is false
CompliancemandatoryThis method must be implemented.