Interface ParameterForm

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

public interface ParameterForm extends OsidRuleForm

This is the form for creating and updating Parameters. 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.

  • Method Details

    • getValueSyntaxMetadata

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

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

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

      Metadata getValueCoordinateTypeMetadata()
      Gets the metadata for the coordinate type for coordinate values.
      Returns:
      metadata for the coordinate type
      Compliance:
      mandatory - This method must be implemented.
    • setValueCoordinateType

      void setValueCoordinateType(Type coordinateType)
      Sets a coordinate type.
      Parameters:
      coordinateType - the new coordinate type
      Throws:
      InvalidArgumentException - coordinateType is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - coordinateType is null
      Compliance:
      mandatory - This method must be implemented.
    • clearValueCoordinateType

      void clearValueCoordinateType()
      Clears the coordinate type.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getValueHeadingTypeMetadata

      Metadata getValueHeadingTypeMetadata()
      Gets the metadata for the heading type for coordinate values.
      Returns:
      metadata for the heading type
      Compliance:
      mandatory - This method must be implemented.
    • setValueHeadingType

      void setValueHeadingType(Type headingType)
      Sets a heading type.
      Parameters:
      headingType - the new heading type
      Throws:
      InvalidArgumentException - headingType is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - headingType is null
      Compliance:
      mandatory - This method must be implemented.
    • clearValueHeadingType

      void clearValueHeadingType()
      Clears the heading type.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getValueObjectTypeMetadata

      Metadata getValueObjectTypeMetadata()
      Gets the metadata for the object value type for object values.
      Returns:
      metadata for the object type
      Compliance:
      mandatory - This method must be implemented.
    • setValueObjectType

      void setValueObjectType(Type objectType)
      Sets an object value type.
      Parameters:
      objectType - the new object type
      Throws:
      InvalidArgumentException - objectType is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - objectType is null
      Compliance:
      mandatory - This method must be implemented.
    • clearValueObjectType

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

      Metadata getValueSpatialUnitRecordTypeMetadata()
      Gets the metadata for the spatial unit record type for coordinate values.
      Returns:
      metadata for the spatial unit record type
      Compliance:
      mandatory - This method must be implemented.
    • setValueSpatialUnitRecordType

      void setValueSpatialUnitRecordType(Type spatialUnitRecordType)
      Sets a spatial unit record type.
      Parameters:
      spatialUnitRecordType - the new spatial unit record type
      Throws:
      InvalidArgumentException - spatialUnitRecordType is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - spatialUnitRecordType is null
      Compliance:
      mandatory - This method must be implemented.
    • clearValueSpatialUnitRecordType

      void clearValueSpatialUnitRecordType()
      Clears the spatial unit record type.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getValueVersionSchemeMetadata

      Metadata getValueVersionSchemeMetadata()
      Gets the metadata for the version type for object values.
      Returns:
      metadata for the version type
      Compliance:
      mandatory - This method must be implemented.
    • setValueVersionScheme

      void setValueVersionScheme(Type versionType)
      Sets a version type.
      Parameters:
      versionType - the new version type
      Throws:
      InvalidArgumentException - versionType is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - versionType is null
      Compliance:
      mandatory - This method must be implemented.
    • clearValueVersionScheme

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

      Metadata getValuesShuffledMetadata()
      Gets the metadata for the shuffle type.
      Returns:
      metadata for the shuffle flag
      Compliance:
      mandatory - This method must be implemented.
    • setValuesShuffled

      void setValuesShuffled(boolean shuffle)
      Sets the shuffle order.
      Parameters:
      shuffle - true to shuffle values by weight, false to order values by index
      Throws:
      InvalidArgumentException - shuffle is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearValuesShuffled

      void clearValuesShuffled()
      Clears the shuffle flag.
      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.