Class AbstractResourceImpl

java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
com.adobe.acs.commons.mcp.form.AbstractResourceImpl
All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource

@ProviderType public class AbstractResourceImpl extends org.apache.sling.api.resource.AbstractResource
This is a mock resource class used to pass values in to the granite UI components.
  • Constructor Details

  • Method Details

    • adaptTo

      public <T> T adaptTo(Class<T> clazz)
      Specified by:
      adaptTo in interface org.apache.sling.api.adapter.Adaptable
      Overrides:
      adaptTo in class org.apache.sling.api.adapter.SlingAdaptable
    • setResourceResolver

      public void setResourceResolver(org.apache.sling.api.resource.ResourceResolver rr)
    • addChild

      public void addChild(org.apache.sling.api.resource.Resource res)
    • removeChild

      public void removeChild(org.apache.sling.api.resource.Resource res)
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.sling.api.resource.Resource
      Overrides:
      getName in class org.apache.sling.api.resource.AbstractResource
    • getParent

      public org.apache.sling.api.resource.Resource getParent()
      Specified by:
      getParent in interface org.apache.sling.api.resource.Resource
      Overrides:
      getParent in class org.apache.sling.api.resource.AbstractResource
    • getChild

      public org.apache.sling.api.resource.Resource getChild(String relPath)
      Specified by:
      getChild in interface org.apache.sling.api.resource.Resource
      Overrides:
      getChild in class org.apache.sling.api.resource.AbstractResource
    • getChildNamed

      public org.apache.sling.api.resource.Resource getChildNamed(String name)
    • getChildren

      public Iterable<org.apache.sling.api.resource.Resource> getChildren()
      Specified by:
      getChildren in interface org.apache.sling.api.resource.Resource
      Overrides:
      getChildren in class org.apache.sling.api.resource.AbstractResource
    • listChildren

      public Iterator<org.apache.sling.api.resource.Resource> listChildren()
      Specified by:
      listChildren in interface org.apache.sling.api.resource.Resource
      Overrides:
      listChildren in class org.apache.sling.api.resource.AbstractResource
    • hasChildren

      public boolean hasChildren()
      Specified by:
      hasChildren in interface org.apache.sling.api.resource.Resource
      Overrides:
      hasChildren in class org.apache.sling.api.resource.AbstractResource
    • isResourceType

      public boolean isResourceType(String type)
      Specified by:
      isResourceType in interface org.apache.sling.api.resource.Resource
      Overrides:
      isResourceType in class org.apache.sling.api.resource.AbstractResource
    • setPath

      public void setPath(String path)
    • getPath

      public String getPath()
    • getResourceType

      public String getResourceType()
    • getResourceSuperType

      public String getResourceSuperType()
    • getResourceMetadata

      public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
    • getValueMap

      public org.apache.sling.api.resource.ValueMap getValueMap()
      Specified by:
      getValueMap in interface org.apache.sling.api.resource.Resource
      Overrides:
      getValueMap in class org.apache.sling.api.resource.AbstractResource
    • getResourceResolver

      public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
    • cloneResource

      public AbstractResourceImpl cloneResource()
    • disableMergeResourceProvider

      public void disableMergeResourceProvider()
    • convertTreeToMap

      public Map<String,Object> convertTreeToMap()