public class PathFieldImpl extends BaseValueAccessor<List<String>,List<String>> implements PathField
Constructor and Description |
---|
PathFieldImpl(String name,
QueryParameter pathQueryParameter,
QueryParameter parentQueryParameter,
QueryParameter idQueryParameter) |
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.
|
getName, getValueConverter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getValueConverter
public PathFieldImpl(String name, QueryParameter pathQueryParameter, QueryParameter parentQueryParameter, QueryParameter idQueryParameter)
public Predicate descendantOf(String id)
HierarchyOperand
Builds a predicate matching all descendants of the object with the given ID.
descendantOf
in interface HierarchyOperand
id
- the id of the (direct or indirect) parent objectpublic Predicate descendantOfOrEq(String id)
HierarchyOperand
Builds a predicate matching all descendants of the object with the given ID, including the parent object.
descendantOfOrEq
in interface HierarchyOperand
id
- the id of the (direct or indirect) parent objectpublic Predicate childOf(String id)
HierarchyOperand
Builds a predicate matching direct children of object with the given ID.
childOf
in interface HierarchyOperand
id
- the id of the direct parent objectpublic Predicate childrenOf(Collection<String> ids)
HierarchyOperand
Builds a predicate matching direct children of the objects with the given IDs.
childrenOf
in interface HierarchyOperand
ids
- the ids of the direct parent objectspublic Predicate isRoot()
HierarchyOperand
Builds a predicate matching objects at the root of the hierarchy (i.e. with no parent).
isRoot
in interface HierarchyOperand
public Ordering orderAsc()
HierarchyOperand
Builds an ordering criterion which sorts by the operand value in ascending order.
orderAsc
in interface HierarchyOperand
public Ordering orderDesc()
HierarchyOperand
Builds an ordering criterion which sorts by the operand value in descending order.
orderDesc
in interface HierarchyOperand
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.