public interface ItemForm extends OsidRelationshipForm
This is the form for creating and updating Items. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the ItemAdminSession.
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 |
clearQuantity()
Clears the quantity.
|
ItemFormRecord |
getItemFormRecord(Type itemRecordType)
Gets the
ItemFormRecord corresponding to the given item
record Type. |
Metadata |
getQuantityMetadata()
Gets the metadata for a quantity.
|
void |
setQuantity(long quantity)
Sets the quantity.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getQuantityMetadata()
mandatory - This method must be implemented. void setQuantity(long quantity)
quantity - the new quantityInvalidArgumentException - quantity is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearQuantity()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. ItemFormRecord getItemFormRecord(Type itemRecordType) throws OperationFailedException
ItemFormRecord corresponding to the given item
record Type. itemRecordType - the item record typeNullArgumentException - itemRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(itemRecordType) is false mandatory - This method must be implemented.