public interface BasicNode extends Linkable, ImageSource, Accessible
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Get the unique ID for this resource based on the path.
|
int |
getIndex()
Get the index of this resource in relation to sibling nodes.
|
int |
getIndex(String resourceType)
Get the index of this node in relation to sibling nodes, ignoring resource types that do not match the specified
value.
|
Optional<javax.jcr.Node> |
getNode()
Get the JCR node for this instance.
|
String |
getPath()
Shortcut for getting the current resource path.
|
List<javax.jcr.Property> |
getProperties(Predicate<javax.jcr.Property> predicate)
Get a list of properties that apply for the given predicate.
|
Resource |
getResource()
Get the underlying resource for this instance.
|
getHref, getHref, getLink, getLink, getLinkBuilder, getLinkBuildergetImageSource, getImageSource, getImageSource, getImageSource, isHasImage, isHasImageasMap, get, get, getAsHref, getAsHref, getAsHref, getAsLink, getAsLink, getAsLink, getAsList, getAsPage, getAsType, getImageReference, getImageReference, getImageRendition, getImageRenditionString getId()
int getIndex()
int getIndex(String resourceType)
resourceType - sling:resourceType to filter onOptional<javax.jcr.Node> getNode()
Optional if the underlying resource
for this instance is synthetic or non-existent.Optional node for this resourceString getPath()
List<javax.jcr.Property> getProperties(Predicate<javax.jcr.Property> predicate)
predicate - predicate to applyResource getResource()
Copyright © 2015 CITYTECH, Inc.. All rights reserved.