Package com.adobe.acs.commons.mcp.form
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.
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TvoidaddChild(org.apache.sling.api.resource.Resource res) voidorg.apache.sling.api.resource.Resourceorg.apache.sling.api.resource.ResourcegetChildNamed(String name) Iterable<org.apache.sling.api.resource.Resource>getName()org.apache.sling.api.resource.ResourcegetPath()org.apache.sling.api.resource.ResourceMetadataorg.apache.sling.api.resource.ResourceResolverorg.apache.sling.api.resource.ValueMapbooleanbooleanisResourceType(String type) Iterator<org.apache.sling.api.resource.Resource>voidremoveChild(org.apache.sling.api.resource.Resource res) voidvoidsetResourceResolver(org.apache.sling.api.resource.ResourceResolver rr) Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable
setAdapterManager, unsetAdapterManager
-
Constructor Details
-
AbstractResourceImpl
-
-
Method Details
-
adaptTo
- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.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
- Specified by:
getNamein interfaceorg.apache.sling.api.resource.Resource- Overrides:
getNamein classorg.apache.sling.api.resource.AbstractResource
-
getParent
public org.apache.sling.api.resource.Resource getParent()- Specified by:
getParentin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getParentin classorg.apache.sling.api.resource.AbstractResource
-
getChild
- Specified by:
getChildin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getChildin classorg.apache.sling.api.resource.AbstractResource
-
getChildNamed
-
getChildren
- Specified by:
getChildrenin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getChildrenin classorg.apache.sling.api.resource.AbstractResource
-
listChildren
- Specified by:
listChildrenin interfaceorg.apache.sling.api.resource.Resource- Overrides:
listChildrenin classorg.apache.sling.api.resource.AbstractResource
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin interfaceorg.apache.sling.api.resource.Resource- Overrides:
hasChildrenin classorg.apache.sling.api.resource.AbstractResource
-
isResourceType
- Specified by:
isResourceTypein interfaceorg.apache.sling.api.resource.Resource- Overrides:
isResourceTypein classorg.apache.sling.api.resource.AbstractResource
-
setPath
-
getPath
-
getResourceType
-
getResourceSuperType
-
getResourceMetadata
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata() -
getValueMap
public org.apache.sling.api.resource.ValueMap getValueMap()- Specified by:
getValueMapin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getValueMapin classorg.apache.sling.api.resource.AbstractResource
-
getResourceResolver
public org.apache.sling.api.resource.ResourceResolver getResourceResolver() -
cloneResource
-
disableMergeResourceProvider
public void disableMergeResourceProvider() -
convertTreeToMap
-