Interface AddressForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
All Known Subinterfaces:
AddressBatchForm

public interface AddressForm extends OsidObjectForm

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.

  • Method Details

    • getResourceMetadata

      Metadata getResourceMetadata()
      Gets the metadata for the resource.
      Returns:
      metadata for the addressee
      Compliance:
      mandatory - This method must be implemented.
    • setResource

      void setResource(Id resourceId)
      Sets the resource.
      Parameters:
      resourceId - a resource Id
      Throws:
      InvalidArgumentException - resourceId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearResource

      void clearResource()
      Clears the resource.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAddressTextMetadata

      Metadata getAddressTextMetadata()
      Gets the metadata for the address text.
      Returns:
      metadata for the address text
      Compliance:
      mandatory - This method must be implemented.
    • setAddressText

      void setAddressText(String addressText)
      Sets the address text.
      Parameters:
      addressText - the address text
      Throws:
      InvalidArgumentException - addressText is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - addressText is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAddressText

      void clearAddressText()
      Clears the address text.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAddressFormRecord

      AddressFormRecord getAddressFormRecord(Type addressRecordType) throws OperationFailedException
      Gets the AddressFormRecord corresponding to the given address record Type .
      Parameters:
      addressRecordType - the address record type
      Returns:
      the address form record
      Throws:
      NullArgumentException - addressRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(addressRecordType) is false
      Compliance:
      mandatory - This method must be implemented.