Interface Idiom

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

public interface Idiom extends OsidObject, Subjugateable

A Idiom is a localized variant of a Text .

  • 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.
    • getLanguageType

      Type getLanguageType()
      Gets the language type.
      Returns:
      the language type
      Compliance:
      mandatory - This method must be implemented.
    • getScriptType

      Type getScriptType()
      Gets the script type.
      Returns:
      the script type
      Compliance:
      mandatory - This method must be implemented.
    • getFormatType

      Type getFormatType()
      Gets the format type.
      Returns:
      the format type
      Compliance:
      mandatory - This method must be implemented.
    • getTemplate

      String getTemplate()
      Gets the template for this idiom.
      Returns:
      the template
      Compliance:
      mandatory - This method must be implemented.
    • getIdiomRecord

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