public interface EntryForm extends OsidRelationshipForm
This is the form for creating and updating Entries. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the EntryAdminSession.
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 |
clearAmount()
Removes the amount.
|
void |
clearDebit()
Clears the debit flag.
|
void |
clearQuantity()
Removes the quantity.
|
Metadata |
getAmountMetadata()
Gets the metadata for the amount.
|
Metadata |
getDebitMetadata()
Gets the metadata for the debit flag.
|
EntryFormRecord |
getEntryFormRecord(Type entryRecordType)
Gets the
EntryFormRecord corresponding to the given
entry record Type. |
Metadata |
getQuantityMetadata()
Gets the metadata for the quantity.
|
void |
setAmount(Currency amount)
Sets the amount.
|
void |
setDebit(boolean debit)
Sets the debit flag.
|
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()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getAmountMetadata()
mandatory - This method must be implemented. void setAmount(Currency amount)
amount - the new amountInvalidArgumentException - amount is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - amount is
null mandatory - This method must be implemented. void clearAmount()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getDebitMetadata()
mandatory - This method must be implemented. void setDebit(boolean debit)
debit - true if this entry is a debit,
false if a creditInvalidArgumentException - debit is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearDebit()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. EntryFormRecord getEntryFormRecord(Type entryRecordType) throws OperationFailedException
EntryFormRecord corresponding to the given
entry record Type. entryRecordType - an entry record typeNullArgumentException - entryRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(entryRecordType) is false mandatory - This method must be implemented.