Interface ObstacleSearchOrder

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

public interface ObstacleSearchOrder extends OsidObjectSearchOrder, OsidOperableSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByPath

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

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

      PathSearchOrder getPathSearchOrder()
      Gets a path search order.
      Returns:
      the path search order
      Throws:
      UnimplementedException - supportsPathSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPathSearchOrder()} is {@code true} .
    • orderByLength

      void orderByLength(SearchOrderStyle style)
      Orders the results by the length of the obstacle.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • getObstacleSearchOrderRecord

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