Interface ParameterForm

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

public interface ParameterForm extends OsidObjectForm, OsidSubjugateableForm

This is the form for creating and updating Parameters . Like all OsidForms , various data elements may be set here for use in the create and update methods in the ParameterAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints. Some data may be automatically derived from the parameter segments.

  • Method Details

    • getSyntaxMetadata

      Metadata getSyntaxMetadata()
      Gets the metadata for the syntax.
      Returns:
      metadata for the syntax
      Compliance:
      mandatory - This method must be implemented.
    • setSyntax

      void setSyntax(Syntax syntax)
      Sets the syntax.
      Parameters:
      syntax - the new syntax
      Throws:
      InvalidArgumentException - syntax is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - syntax is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSyntax

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

      Metadata getInputPositionMetadata()
      Gets the metadata for the input position.
      Returns:
      metadata for the input position
      Compliance:
      mandatory - This method must be implemented.
    • setInputPosition

      void setInputPosition(long position)
      Sets the input position.
      Parameters:
      position - the new input position
      Throws:
      InvalidArgumentException - position is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearInputPosition

      void clearInputPosition()
      Clears the input position.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getParameterFormRecord

      ParameterFormRecord getParameterFormRecord(Type parameterRecordType) throws OperationFailedException
      Gets the ParameterFormRecord corresponding to the given parameter record Type .
      Parameters:
      parameterRecordType - a parameter record type
      Returns:
      the parameter form record
      Throws:
      NullArgumentException - parameterRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(parameterRecordType) is false
      Compliance:
      mandatory - This method must be implemented.