Interface Parameter

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable

public interface Parameter extends OsidObject, Subjugateable

A Parameter specifies a variable substitution in the string of a Text to produce an Idiom .

  • Method Details

    • getTextId

      Id getTextId()
      Gets the text Id .
      Returns:
      the text Id
      Compliance:
      mandatory - This method must be implemented.
    • getText

      Text getText() throws OperationFailedException
      Gets the text.
      Returns:
      the text
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getSyntax

      Syntax getSyntax()
      Gets the syntax of the parameter.
      Returns:
      the syntax
      Compliance:
      mandatory - This method must be implemented.
    • getInputPosition

      long getInputPosition()
      Gets the input position for this parameter as supplied to the text.
      Returns:
      the position
      Compliance:
      mandatory - This method must be implemented.
    • getParameterRecord

      ParameterRecord getParameterRecord(Type parameterRecordType) throws OperationFailedException
      Gets the parameter record corresponding to the given Parameter record Type . This method is used to retrieve an object implementing the requested record. The parameterRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(parameterRecordType) is true .
      Parameters:
      parameterRecordType - the type of parameter record to retrieve
      Returns:
      the parameter record
      Throws:
      NullArgumentException - parameterRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(parameterRecordType) is false
      Compliance:
      mandatory - This method must be implemented.