@Documented @Target(value={FIELD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface Children
Provides a Collection, List or Set
of children of the resource. The resource might be the current resource itself,
a resource designated by a Path annotation
or a referenced resource.
@Children
private List<Resource> children;
Children of the current resource as Pages
@Children
private List<Page> pages;
Children of the resource at the path "/path/to/resource"
@Children of the resource referenced in the property named "pages"Path("/path/to/resource") @Childrenprivate List<Page> pages;
@Children of the resource referenced in the property named "propContainingReference"Reference@Childrenprivate List<Page> pages;
@The "jcr:content" node of Children of the current resource, adapted to "PageContent".Path("propContainingReference") @Reference@Childrenprivate List<Page> pages;
@Children(resolveBelowEveryChild = "/jcr:content")
private List<PageContent> pageContents;
| Modifier and Type | Optional Element and Description |
|---|---|
String |
resolveBelowEveryChild |
public abstract String resolveBelowEveryChild
Copyright © 2024. All rights reserved.