public interface ResponseForm extends OsidObjectForm
This is the form for submitting Responses.
Modifier and Type | Method and Description |
---|---|
void |
clearValue(Id id)
Clears a value.
|
Metadata[] |
getMetadata()
Gets the metadata for all the fields.
|
ResponseFormRecord |
getResponseFormRecord(Type responseRecordType)
Gets the
ResponseFormRecord corresponding to the given
response record Type. |
void |
setValue(Id id,
java.lang.Object value)
Sets a value for a given field.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata[] getMetadata()
mandatory
- This method must be implemented. void setValue(Id id, java.lang.Object value)
id
- the Id
of the metadata fieldvalue
- the valueInvalidArgumentException
- id
or
value
is invalidNullArgumentException
- id
or
value
is null
NoAccessException
- value
cannot be
modifiedmandatory
- This method must be implemented. void clearValue(Id id)
id
- the Id
of the metadata fieldNoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
NullArgumentException
- id
is
null
mandatory
- This method must be implemented. ResponseFormRecord getResponseFormRecord(Type responseRecordType) throws OperationFailedException
ResponseFormRecord
corresponding to the given
response record Type.
responseRecordType
- a response record typeNullArgumentException
- responseRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(responseRecordType)
is false
mandatory
- This method must be implemented.