|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of traversable resourcepublic interface Traversable<T>
Definition for hierarchical JCR resources that can be traversed.
| Method Summary | ||
|---|---|---|
Optional<T> |
findAncestor(Predicate<T> predicate)
Find the first ancestor resource that matches the given predicate condition. |
|
Optional<T> |
findAncestorWithProperty(String propertyName)
Find the first ancestor resource containing the given property name. |
|
|
findAncestorWithPropertyValue(String propertyName,
V propertyValue)
Find the first ancestor resource where the given property name has the specified value. |
|
List<T> |
findDescendants(Predicate<T> predicate)
Get a list of descendant resources that match the given predicate condition. |
|
| Method Detail |
|---|
Optional<T> findAncestor(Predicate<T> predicate)
predicate - predicate to match ancestor resources against
Optional resource that matches the predicate conditionOptional<T> findAncestorWithProperty(String propertyName)
propertyName - property name to find on ancestor resources
Optional resource that contains the property
<V> Optional<T> findAncestorWithPropertyValue(String propertyName,
V propertyValue)
V - type of valuepropertyName - property name to find on ancestor resourcespropertyValue - value of named property to match
Optional resource that contains the property valueList<T> findDescendants(Predicate<T> predicate)
predicate - predicate to match descendant resources against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||