public class MergedMultiResource extends SyntheticResource
ValueMap in adaptTo(Class) that merges the values of all
resources, ie. provide a null value for a key if the value is not the same in
all resurces and only present a value if that one is present in exactly all
of the resources.RESOURCE_TYPE_NON_EXISTING| Constructor and Description |
|---|
MergedMultiResource(java.util.List<Resource> resources) |
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(java.lang.Class<AdapterType> type)
Calls into the registered
AdapterManager to adapt this object to
the desired type. |
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toStringgetChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildrensetAdapterManager, unsetAdapterManagerpublic MergedMultiResource(java.util.List<Resource> resources)
public <AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
SlingAdaptableAdapterManager to adapt this object to
the desired type.
This method implements a cache of adapters to improve performance. That is repeated calls to this method with the same class will result in the same object to be returned.
adaptTo in interface AdaptableadaptTo in class SlingAdaptableAdapterType - The generic type to which this resource is adapted
totype - The Class object of the target type, such as
javax.jcr.Node.class or
java.io.File.classnull if the resource cannot
adapt to the requested typeCopyright © 2010 - 2023 Adobe. All Rights Reserved