@ProviderType
public class AbstractResourceImpl
extends org.apache.sling.api.resource.AbstractResource
| Constructor and Description |
|---|
AbstractResourceImpl(String path,
String resourceType,
String resourceSuperType,
org.apache.sling.api.resource.ResourceMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
adaptTo(Class<T> clazz) |
void |
addChild(org.apache.sling.api.resource.Resource res) |
AbstractResourceImpl |
cloneResource() |
Map<String,Object> |
convertTreeToMap() |
void |
disableMergeResourceProvider() |
org.apache.sling.api.resource.Resource |
getChild(String relPath) |
org.apache.sling.api.resource.Resource |
getChildNamed(String name) |
Iterable<org.apache.sling.api.resource.Resource> |
getChildren() |
String |
getName() |
org.apache.sling.api.resource.Resource |
getParent() |
String |
getPath() |
org.apache.sling.api.resource.ResourceMetadata |
getResourceMetadata() |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
String |
getResourceSuperType() |
String |
getResourceType() |
org.apache.sling.api.resource.ValueMap |
getValueMap() |
boolean |
hasChildren() |
boolean |
isResourceType(String type) |
Iterator<org.apache.sling.api.resource.Resource> |
listChildren() |
void |
removeChild(org.apache.sling.api.resource.Resource res) |
void |
setPath(String path) |
void |
setResourceResolver(org.apache.sling.api.resource.ResourceResolver rr) |
public <T> T adaptTo(Class<T> clazz)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.api.adapter.SlingAdaptablepublic void setResourceResolver(org.apache.sling.api.resource.ResourceResolver rr)
public void addChild(org.apache.sling.api.resource.Resource res)
public void removeChild(org.apache.sling.api.resource.Resource res)
public String getName()
getName in interface org.apache.sling.api.resource.ResourcegetName in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.Resource getParent()
getParent in interface org.apache.sling.api.resource.ResourcegetParent in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.Resource getChild(String relPath)
getChild in interface org.apache.sling.api.resource.ResourcegetChild in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.Resource getChildNamed(String name)
public Iterable<org.apache.sling.api.resource.Resource> getChildren()
getChildren in interface org.apache.sling.api.resource.ResourcegetChildren in class org.apache.sling.api.resource.AbstractResourcepublic Iterator<org.apache.sling.api.resource.Resource> listChildren()
listChildren in interface org.apache.sling.api.resource.ResourcelistChildren in class org.apache.sling.api.resource.AbstractResourcepublic boolean hasChildren()
hasChildren in interface org.apache.sling.api.resource.ResourcehasChildren in class org.apache.sling.api.resource.AbstractResourcepublic boolean isResourceType(String type)
isResourceType in interface org.apache.sling.api.resource.ResourceisResourceType in class org.apache.sling.api.resource.AbstractResourcepublic void setPath(String path)
public String getPath()
public String getResourceType()
public String getResourceSuperType()
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
public org.apache.sling.api.resource.ValueMap getValueMap()
getValueMap in interface org.apache.sling.api.resource.ResourcegetValueMap in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public AbstractResourceImpl cloneResource()
public void disableMergeResourceProvider()
Copyright © 2013–2020 Adobe. All rights reserved.