OSID Logo
OSID Specifications
contact package
Version 3.1.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.Metadata metadata for the addressee
Compliancemandatory This method must be implemented.
MethodsetResource
Description

Sets the resource.

Parametersosid.id.IdresourceId a resource Id
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearResource
Description

Clears the resource.

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

Gets the metadata for the address text.

Returnosid.Metadata metadata for the address text
Compliancemandatory This method must be implemented.
MethodsetAddressText
Description

Sets the address text.

ParametersstringaddressText the address text
ErrorsINVALID_ARGUMENT addressText is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT addressText is null
Compliancemandatory This method must be implemented.
MethodclearAddressText
Description

Clears the address text.

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

Gets the AddressFormRecord corresponding to the given address record Type.

Parametersosid.type.TypeaddressRecordType the address record type
Returnosid.contact.records.AddressFormRecord the address form record
ErrorsNULL_ARGUMENT addressRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(addressRecordType) is false
Compliancemandatory This method must be implemented.