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.
Modifier and Type | Method and Description |
---|---|
void |
clearResource()
Clears the resource.
|
AddressFormRecord |
getAddressFormRecord(Type addressRecordType)
Gets the
AddressFormRecord corresponding to the given
address record Type. |
Metadata |
getResourceMetadata()
Gets the metadata for the resource.
|
void |
setResource(Id resourceId)
Sets the resource.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getResourceMetadata()
mandatory
- This method must be implemented. void setResource(Id resourceId)
resourceId
- a resource Id
InvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearResource()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AddressFormRecord getAddressFormRecord(Type addressRecordType) throws OperationFailedException
AddressFormRecord
corresponding to the given
address record Type.
addressRecordType
- the address record typeNullArgumentException
- addressRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(addressRecordType)
is false
mandatory
- This method must be implemented.