public class SyntheticChildAsPropertyResource
extends org.apache.sling.api.resource.SyntheticResource
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE |
| Constructor and Description |
|---|
SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent,
String nodeName)
Creates a new SyntheticChildAsPropertyResource.
|
SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent,
String nodeName,
Map<String,Object> data)
Creates a new SyntheticChildAsPropertyResource.
|
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type) |
org.apache.sling.api.resource.ValueMap |
getValueMap() |
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toStringgetChild, getChildren, getName, getParent, hasChildren, isResourceType, listChildrenpublic static final String RESOURCE_TYPE
public SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent,
String nodeName)
parent - the synthetic nodes parent (a real JCR Resource)nodeName - the name of the synthetic child resourcepublic SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent,
String nodeName,
Map<String,Object> data)
parent - the synthetic nodes parent (a real JCR Resource)nodeName - the name of the synthetic child resourcedata - initial value map datapublic final org.apache.sling.api.resource.ValueMap getValueMap()
getValueMap in interface org.apache.sling.api.resource.ResourcegetValueMap in class org.apache.sling.api.resource.AbstractResourcepublic final <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.api.adapter.SlingAdaptableCopyright © 2013–2020 Adobe. All rights reserved.