public interface ComponentNode extends BasicNode, Inheritable, Traversable<ComponentNode>
Many methods return an Optional type where a null instance would otherwise be returned.
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<ComponentNode> |
getComponentNode(String relativePath)
Get the component node for the resource at the given path relative to the current node.
|
com.google.common.base.Optional<ComponentNode> |
getComponentNodeInherited(String relativePath)
Get a child node relative to the current node, inheriting from a parent page if it does not exist.
|
List<ComponentNode> |
getComponentNodes()
Get a list of child nodes for the current node.
|
List<ComponentNode> |
getComponentNodes(com.google.common.base.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,
com.google.common.base.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.
|
List<ComponentNode> |
getComponentNodesInherited(String relativePath)
Get the children of a node relative to the current node.
|
com.google.common.base.Optional<BasicNode> |
getDesignNode()
Get the design node for the current component.
|
com.google.common.base.Optional<ComponentNode> |
getParent()
Get the parent of this node.
|
getId, getIndex, getIndex, getNode, getPath, getProperties, getResourcegetHref, getHref, getLink, getLink, getLinkBuilder, getLinkBuildergetImageSource, getImageSource, getImageSource, getImageSource, isHasImage, isHasImageasMap, get, get, getAsHref, getAsHref, getAsHref, getAsLink, getAsLink, getAsLink, getAsList, getAsPage, getAsType, getImageReference, getImageReference, getImageReference, getImageRendition, getImageRenditiongetAsHrefInherited, getAsHrefInherited, getAsHrefInherited, getAsLinkInherited, getAsLinkInherited, getAsLinkInherited, getAsListInherited, getAsPageInherited, getAsTypeInherited, getImageReferenceInherited, getImageReferenceInherited, getImageReferenceInherited, getImageSourceInherited, getImageSourceInherited, getImageSourceInherited, getImageSourceInherited, getInherited, getInheritedfindAncestor, findAncestor, findAncestorWithProperty, findAncestorWithProperty, findAncestorWithPropertyValue, findAncestorWithPropertyValue, findDescendantscom.google.common.base.Optional<ComponentNode> getComponentNode(String relativePath)
relativePath - relative path to componentOptional node for componentList<ComponentNode> getComponentNodes()
List<ComponentNode> getComponentNodes(com.google.common.base.Predicate<ComponentNode> predicate)
predicate - predicate used to filter nodesList<ComponentNode> getComponentNodes(String relativePath)
relativePath - relative path to parent of desired nodesList<ComponentNode> getComponentNodes(String relativePath, String resourceType)
relativePath - relative path to parent of desired nodesresourceType - sling:resourceType of nodes to get from parent nodeList<ComponentNode> getComponentNodes(String relativePath, com.google.common.base.Predicate<ComponentNode> predicate)
relativePath - relative path to parent of desired nodespredicate - predicate used to filter nodescom.google.common.base.Optional<BasicNode> getDesignNode()
Optional design node for the current stylecom.google.common.base.Optional<ComponentNode> getComponentNodeInherited(String relativePath)
relativePath - path relative to current nodeList<ComponentNode> getComponentNodesInherited(String relativePath)
relativePath - path relative to current nodecom.google.common.base.Optional<ComponentNode> getParent()
Copyright © 2019 ICF Next. All rights reserved.