public class ValueMapResourceWrapper extends ResourceWrapper
ValueMapResourceWrapper wraps a resource with an empty ValueMap to allow resources
with dynamic properties.RESOURCE_TYPE_NON_EXISTING| Constructor and Description |
|---|
ValueMapResourceWrapper(Resource resource,
java.lang.String resourceType)
Creates a new wrapper for the given resource and the given type.
|
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(java.lang.Class<AdapterType> type)
Returns the value of calling
adaptTo on the
wrapped resource. |
java.lang.String |
getResourceType()
Returns the value of calling
getResourceType on the
wrapped resource. |
ValueMap |
getValueMap()
Returns a value map for this resource.
|
getChild, getChildren, getName, getParent, getPath, getResource, getResourceMetadata, getResourceResolver, getResourceSuperType, hasChildren, isResourceType, listChildren, toStringpublic ValueMapResourceWrapper(Resource resource, java.lang.String resourceType)
resource - The resource to wrapresourceType - The typepublic java.lang.String getResourceType()
getResourceType on the
wrapped resource.getResourceType in interface ResourcegetResourceType in class ResourceWrapperpublic <AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
adaptTo on the
wrapped resource.adaptTo in interface AdaptableadaptTo in class ResourceWrapperAdapterType - The generic type to which this object is adapted
totype - The Class object of the target type, such as
javax.jcr.Node.class or
java.io.File.classnull if the object cannot
adapt to the requested typepublic ValueMap getValueMap()
getValueMap in interface ResourcegetValueMap in class ResourceWrapperResource.getValueMap()"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"