public interface PathSearchOrder extends OsidRelationshipSearchOrder, OsidAggregateableSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
NodeSearchOrder |
getEndingNodeSearchOrder()
Gets an ending node search order.
|
PathSearchOrderRecord |
getPathSearchOrderRecord(Type pathRecordType)
Gets the path search order record corresponding to the given path
record
Type. |
NodeSearchOrder |
getStartingNodeSearchOrder()
Gets a starting node search order.
|
void |
orderByClosed(SearchOrderStyle style)
Specifies a preference for ordering the result set by the open and
closed paths.
|
void |
orderByComplete(SearchOrderStyle style)
Specifies a preference for ordering the result set by the complete
state.
|
void |
orderByCost(SearchOrderStyle style)
Specifies a preference for ordering the result set by the path cost.
|
void |
orderByDistance(SearchOrderStyle style)
Specifies a preference for ordering the result set by the path
distance.
|
void |
orderByEndingNode(SearchOrderStyle style)
Specifies a preference for ordering the result set by the starting
node.
|
void |
orderByHops(SearchOrderStyle style)
Specifies a preference for ordering the result set by the number of
hops in the path.
|
void |
orderByStartingNode(SearchOrderStyle style)
Specifies a preference for ordering the result set by the starting
node.
|
boolean |
supportsEndingNodeSearchOrder()
Tests if an ending node search order is available.
|
boolean |
supportsStartingNodeSearchOrder()
Tests if a starting node search order is available.
|
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
orderByEffective, orderByEndDate, orderByStartDate
void orderByStartingNode(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsStartingNodeSearchOrder()
true
if a node search order is available,
false
otherwisemandatory
- This method must be implemented. NodeSearchOrder getStartingNodeSearchOrder()
UnimplementedException
-
supportsStartingNodeSearchOrder()
is false
optional
- This method must be implemented if
supportsStartingNodeSearchOrder()
is true.
void orderByEndingNode(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsEndingNodeSearchOrder()
true
if a node search order is available,
false
otherwisemandatory
- This method must be implemented. NodeSearchOrder getEndingNodeSearchOrder()
UnimplementedException
-
supportsEndingNodeSearchOrder()
is false
optional
- This method must be implemented if
supportsEndingNodeSearchOrder()
is true.
void orderByComplete(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByClosed(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByHops(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByDistance(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByCost(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. PathSearchOrderRecord getPathSearchOrderRecord(Type pathRecordType) throws OperationFailedException
Type.
Multiple retrievals return the same
underlying object.pathRecordType
- a path record typeNullArgumentException
- pathRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(pathRecordType)
is false
mandatory
- This method must be implemented.