Class ValueMapResourceWrapper

java.lang.Object
org.apache.sling.api.resource.ResourceWrapper
com.adobe.granite.ui.components.ValueMapResourceWrapper
All Implemented Interfaces:
Adaptable, Resource

public class ValueMapResourceWrapper extends ResourceWrapper
A resource wrapper that wraps an underlying resource with an empty ValueMap}, which can be modified accordingly. It is used for the scenario where we want to control the ValueMap returned by a resource.
  • Constructor Details

    • ValueMapResourceWrapper

      public ValueMapResourceWrapper(@Nonnull Resource resource, String resourceType)
      Instantiates a new wrapper.
      Parameters:
      resource - The resource to wrap
      resourceType - The resource type of the resource wrapper
  • Method Details