Interface LocationSearchOrder

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

public interface LocationSearchOrder extends OsidObjectSearchOrder, OsidFederateableSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByDistance

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

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