Interface IdiomSearchOrder

All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, OsidSubjugateableSearchOrder, Suppliable

public interface IdiomSearchOrder extends OsidObjectSearchOrder, OsidSubjugateableSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByText

      void orderByText(SearchOrderStyle style)
      Orders the results by text.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsTextSearchOrder

      boolean supportsTextSearchOrder()
      Tests if a text search order is available.
      Returns:
      true if a text search order is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getTextSearchOrder

      TextSearchOrder getTextSearchOrder()
      Gets the text search order.
      Returns:
      the text search order
      Throws:
      IllegalStateException - supportsTextSearchOrder() is false
      Compliance:
      mandatory - This method must be implemented.
    • orderByLanguageType

      void orderByLanguageType(SearchOrderStyle style)
      Orders the results by language type.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • orderByScriptType

      void orderByScriptType(SearchOrderStyle style)
      Orders the results by script type.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • orderByFormatType

      void orderByFormatType(SearchOrderStyle style)
      Orders the results by format type.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • orderByString

      void orderByString(SearchOrderStyle style)
      Orders the results by string.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • getIdiomSearchOrderRecord

      IdiomSearchOrderRecord getIdiomSearchOrderRecord(Type idiomRecordType) throws OperationFailedException
      Gets the idiom search order record corresponding to the given idiom record Type . Multiple retrievals return the same underlying object.
      Parameters:
      idiomRecordType - an idiom record type
      Returns:
      the idiom search order record
      Throws:
      NullArgumentException - idiomRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(idiomRecordType) is false
      Compliance:
      mandatory - This method must be implemented.