|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentNode
Represents a "component" node in the JCR, typically an unstructured node in the hierarchy of a CQ page.
Many methods return an Optional type where a null instance would otherwise be returned.
| Method Summary | |
|---|---|
Optional<ComponentNode> |
getComponentNode(String relativePath)
Get the component node for the resource at the given path relative to the current node. |
List<ComponentNode> |
getComponentNodes()
Get a list of child nodes for the current node. |
List<ComponentNode> |
getComponentNodes(Predicate<ComponentNode> predicate)
Get a predicate-filtered list of child nodes for the current node. |
List<ComponentNode> |
getComponentNodes(String relativePath)
Get a list of child nodes for the resource at the given path relative to this node. |
List<ComponentNode> |
getComponentNodes(String relativePath,
Predicate<ComponentNode> predicate)
Get a list of child nodes for the resource at the given path relative to this node, returning only the nodes that meet the predicate criteria. |
List<ComponentNode> |
getComponentNodes(String relativePath,
String resourceType)
Get a list of child nodes for the resource at the given path relative to this node, returning only the nodes that have the specified resource type. |
Optional<BasicNode> |
getDesignNode()
Get the design node for the current component. |
Optional<BasicNode> |
getNodeInherited(String relativePath)
Get a child node relative to the current node, inheriting from a parent page if it does not exist. |
List<BasicNode> |
getNodesInherited(String relativePath)
Get the children of a node relative to the current node. |
Optional<ComponentNode> |
getParent()
Get the parent of this node. |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.node.BasicNode |
|---|
getId, getIndex, getIndex, getNode, getPath, getProperties, getResource |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.Linkable |
|---|
getHref, getHref, getLink, getLink, getLinkBuilder, getLinkBuilder |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.ImageSource |
|---|
getImageSource, getImageSource, getImageSource, getImageSource, isHasImage, isHasImage |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.Accessible |
|---|
asMap, get, get, getAsHref, getAsHref, getAsHref, getAsLink, getAsLink, getAsLink, getAsList, getAsPage, getAsType, getImageReference, getImageReference, getImageRendition, getImageRendition |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.Inheritable |
|---|
getAsHrefInherited, getAsHrefInherited, getAsHrefInherited, getAsLinkInherited, getAsLinkInherited, getAsLinkInherited, getAsListInherited, getAsPageInherited, getAsTypeInherited, getImageReferenceInherited, getImageReferenceInherited, getImageSourceInherited, getImageSourceInherited, getImageSourceInherited, getImageSourceInherited, getInherited, getInherited |
| Methods inherited from interface com.citytechinc.aem.bedrock.api.Traversable |
|---|
findAncestor, findAncestorWithProperty, findAncestorWithPropertyValue, findDescendants |
| Method Detail |
|---|
Optional<ComponentNode> getComponentNode(String relativePath)
relativePath - relative path to component
Optional node for componentList<ComponentNode> getComponentNodes()
List<ComponentNode> getComponentNodes(Predicate<ComponentNode> predicate)
predicate - predicate used to filter nodes
List<ComponentNode> getComponentNodes(String relativePath)
relativePath - relative path to parent of desired nodes
List<ComponentNode> getComponentNodes(String relativePath,
String resourceType)
relativePath - relative path to parent of desired nodesresourceType - sling:resourceType of nodes to get from parent node
List<ComponentNode> getComponentNodes(String relativePath,
Predicate<ComponentNode> predicate)
relativePath - relative path to parent of desired nodespredicate - predicate used to filter nodes
Optional<BasicNode> getDesignNode()
Optional design node for the current styleOptional<BasicNode> getNodeInherited(String relativePath)
relativePath - path relative to current node
List<BasicNode> getNodesInherited(String relativePath)
relativePath - path relative to current node
Optional<ComponentNode> getParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||