public interface HierarchyOperand
Defines the methods to build hierarchy-specific Predicate
instances.
Modifier and Type | Method and Description |
---|---|
Predicate |
childOf(String id)
Builds a predicate matching direct children of object with the given ID.
|
Predicate |
childrenOf(Collection<String> ids)
Builds a predicate matching direct children of the objects with the given IDs.
|
Predicate |
descendantOf(String id)
Builds a predicate matching all descendants of the object with the given ID.
|
Predicate |
descendantOfOrEq(String id)
Builds a predicate matching all descendants of the object with the given ID, including the parent object.
|
Predicate |
isRoot()
Builds a predicate matching objects at the root of the hierarchy (i.e. with no parent).
|
Ordering |
orderAsc()
Builds an ordering criterion which sorts by the operand value in ascending order.
|
Ordering |
orderDesc()
Builds an ordering criterion which sorts by the operand value in descending order.
|
Predicate descendantOf(String id)
Builds a predicate matching all descendants of the object with the given ID.
id
- the id of the (direct or indirect) parent objectPredicate descendantOfOrEq(String id)
Builds a predicate matching all descendants of the object with the given ID, including the parent object.
id
- the id of the (direct or indirect) parent objectPredicate childOf(String id)
Builds a predicate matching direct children of object with the given ID.
id
- the id of the direct parent objectPredicate childrenOf(Collection<String> ids)
Builds a predicate matching direct children of the objects with the given IDs.
ids
- the ids of the direct parent objectsPredicate isRoot()
Builds a predicate matching objects at the root of the hierarchy (i.e. with no parent).
Ordering orderAsc()
Builds an ordering criterion which sorts by the operand value in ascending order.
Ordering orderDesc()
Builds an ordering criterion which sorts by the operand value in descending order.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.