public interface AssessmentPartForm extends OsidObjectForm, OsidContainableForm, OsidOperableForm
This is the form for creating and updating AssessmentParts.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
AssessmentAuthoringSession.
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 |
clearAllocatedTime()
Clears the allocated time.
|
void |
clearWeight()
Clears the weight.
|
Metadata |
getAllocatedTimeMetadata()
Gets the metadata for the allocated time.
|
AssessmentPartFormRecord |
getAssessmentPartFormRecord(Type assessmentPartRecordType)
Gets the
AssessmentPartFormRecord corresponding to the
given assessment record Type. |
Metadata |
getWeightMetadata()
Gets the metadata for the weight.
|
void |
setAllocatedTime(Duration time)
Sets the allocated time.
|
void |
setWeight(long weight)
Sets the weight on a scale from 0-100.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearSequestered, getSequesteredMetadata, setSequestered
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
Metadata getWeightMetadata()
mandatory
- This method must be implemented. void setWeight(long weight)
weight
- the new weightInvalidArgumentException
- weight
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearWeight()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getAllocatedTimeMetadata()
mandatory
- This method must be implemented. void setAllocatedTime(Duration time)
time
- the allocated timeInvalidArgumentException
- time
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearAllocatedTime()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssessmentPartFormRecord getAssessmentPartFormRecord(Type assessmentPartRecordType) throws OperationFailedException
AssessmentPartFormRecord
corresponding to the
given assessment record Type.
assessmentPartRecordType
- the assessment part record typeNullArgumentException
- assessmentPartRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentPartRecordType)
is
false
mandatory
- This method must be implemented.