public interface GradeForm extends OsidObjectForm, OsidSubjugateableForm
This is the form for creating and updating Grades.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the GradeAdminSession.
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 |
clearInputScoreEndRange()
Clears the input score start.
|
void |
clearInputStartScoreRange()
Clears the input score start.
|
void |
clearOutputScore()
Clears the output score.
|
GradeFormRecord |
getGradeFormRecord(Type gradeRecordType)
Gets the
GradeFormRecord corresponding to the given
grade record Type. |
Metadata |
getInputScoreEndRangeMetadata()
Gets the metadata for the input score start range.
|
Metadata |
getInputScoreStartRangeMetadata()
Gets the metadata for the input score start range.
|
Metadata |
getOutputScoreMetadata()
Gets the metadata for the output score start range.
|
void |
setInputScoreEndRange(java.math.BigDecimal score)
Sets the input score start range.
|
void |
setInputScoreStartRange(java.math.BigDecimal score)
Sets the input score start range.
|
void |
setOutputScore(java.math.BigDecimal score)
Sets the output score.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getInputScoreStartRangeMetadata()
mandatory
- This method must be implemented. void setInputScoreStartRange(java.math.BigDecimal score)
score
- the new start rangeInvalidArgumentException
- score
is
invalidNoAccessException
- range
cannot be
modifiedmandatory
- This method must be implemented. void clearInputStartScoreRange()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getInputScoreEndRangeMetadata()
mandatory
- This method must be implemented. void setInputScoreEndRange(java.math.BigDecimal score)
score
- the new start rangeInvalidArgumentException
- score
is
invalidNoAccessException
- range
cannot be
modifiedmandatory
- This method must be implemented. void clearInputScoreEndRange()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getOutputScoreMetadata()
mandatory
- This method must be implemented. void setOutputScore(java.math.BigDecimal score)
score
- the new output scoreInvalidArgumentException
- score
is
invalidNoAccessException
- score
cannot be
modifiedmandatory
- This method must be implemented. void clearOutputScore()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. GradeFormRecord getGradeFormRecord(Type gradeRecordType) throws OperationFailedException
GradeFormRecord
corresponding to the given
grade record Type.
gradeRecordType
- the grade record typeNullArgumentException
- gradeRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(gradeRecordType)
is false
mandatory
- This method must be implemented.