Interface ResultForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
ResultBatchForm

public interface ResultForm extends OsidObjectForm, OsidTemporalForm, OsidSubjugateableForm

This is the form for creating and updating Results. Like all OsidForms, various data elements may be set here for use in the create and update methods in the ResultAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

  • Method Details

    • getGradeMetadata

      Metadata getGradeMetadata()
      Gets the metadata for a grade.
      Returns:
      metadata for the grade
      Compliance:
      mandatory - This method must be implemented.
    • setGrade

      void setGrade(Id gradeId)
      Sets the grade.
      Parameters:
      gradeId - the grade Id
      Throws:
      InvalidArgumentException - gradeId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - gradeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearGrade

      void clearGrade()
      Clears the grade.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getValueMetadata

      Metadata getValueMetadata()
      Gets the metadata for a value/
      Returns:
      metadata for the value
      Compliance:
      mandatory - This method must be implemented.
    • setValue

      void setValue(BigDecimal value)
      Sets the value.
      Parameters:
      value - the value
      Throws:
      InvalidArgumentException - value is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearValue

      void clearValue()
      Clears the value.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getResultFormRecord

      ResultFormRecord getResultFormRecord(Type resultRecordType) throws OperationFailedException
      Gets the ResultFormRecord interface corresponding to the given result record Type.
      Parameters:
      resultRecordType - the result record type
      Returns:
      the record
      Throws:
      NullArgumentException - resultRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(resultRecordType) is false
      Compliance:
      mandatory - This method must be implemented.