public final class NonExistingResource extends SyntheticResource
ResourceUtil.isNonExistingResource(Resource)method instead (or check the resource type yourself). The reason for this is that this resource might be wrapped by other resource implementations like resource decorators etc.
|Constructor and Description|
Create a new non existing resource.
|Modifier and Type||Method and Description|
Returns the parent resource of this resource.
The resource type is meant to point to rendering/processing scripts, editing dialogs, etc.
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType
getChild, getChildren, getName, getValueMap, hasChildren, isResourceType, listChildren
adaptTo, setAdapterManager, unsetAdapterManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
@Nonnull public final String getResourceType()
ResourceResolveris free to set this to any suitable value such as the primary node type of the JCR node from which the resource is created.
If the resource instance represents a resource which is not actually
existing, this method returns
public Resource getParent()
This method is implemented calling the
Copyright © 2017 The Apache Software Foundation. All rights reserved.