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.RESOURCE_TYPE_NON_EXISTING| Constructor and Description |
|---|
NonExistingResource(ResourceResolver resourceResolver,
java.lang.String resourceURI)
Create a new non existing resource.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
getParent()
Returns the parent resource of this resource.
|
@NotNull java.lang.String |
getResourceType()
The resource type is meant to point to rendering/processing scripts,
editing dialogs, etc.
|
java.lang.String |
toString() |
getPath, getResourceMetadata, getResourceResolver, getResourceSuperTypegetChild, getChildren, getName, getValueMap, hasChildren, isResourceType, listChildrenadaptTo, setAdapterManager, unsetAdapterManagerpublic NonExistingResource(ResourceResolver resourceResolver, java.lang.String resourceURI)
resourceResolver - The resource resolver.resourceURI - The path of the resource.@NotNull public final @NotNull java.lang.String getResourceType()
ResourceResourceResolver is 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 Resource.RESOURCE_TYPE_NON_EXISTING.
getResourceType in interface ResourcegetResourceType in class SyntheticResourceSyntheticResource.getResourceType()public java.lang.String toString()
toString in class SyntheticResourcepublic Resource getParent()
AbstractResource
This method is implemented calling the ResourceResolver.getParent(Resource) method.
getParent in interface ResourcegetParent in class AbstractResourceNonExistingResource in case the parent does not exist either).ResourceResolver.getParent(Resource)Copyright © 2010 - 2023 Adobe. All Rights Reserved