Class SyntheticChildAsPropertyResource
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- org.apache.sling.api.resource.AbstractResource
-
- org.apache.sling.api.resource.SyntheticResource
-
- com.adobe.acs.commons.synth.children.SyntheticChildAsPropertyResource
-
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable,org.apache.sling.api.resource.Resource
public class SyntheticChildAsPropertyResource extends org.apache.sling.api.resource.SyntheticResourceResource object that represents data that can be serialized to a resource's property.
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESOURCE_TYPE
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <AdapterType>
AdapterTypeadaptTo(Class<AdapterType> type)org.apache.sling.api.resource.ValueMapgetValueMap()-
Methods inherited from class org.apache.sling.api.resource.SyntheticResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toString
-
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, hasChildren, isResourceType, listChildren
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SyntheticChildAsPropertyResource
public SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent, String nodeName)Creates a new SyntheticChildAsPropertyResource.- Parameters:
parent- the synthetic nodes parent (a real JCR Resource)nodeName- the name of the synthetic child resource
-
SyntheticChildAsPropertyResource
public SyntheticChildAsPropertyResource(org.apache.sling.api.resource.Resource parent, String nodeName, Map<String,Object> data)Creates a new SyntheticChildAsPropertyResource.- Parameters:
parent- the synthetic nodes parent (a real JCR Resource)nodeName- the name of the synthetic child resourcedata- initial value map data
-
-
Method Detail
-
getValueMap
public final org.apache.sling.api.resource.ValueMap getValueMap()
- Specified by:
getValueMapin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getValueMapin classorg.apache.sling.api.resource.AbstractResource
-
adaptTo
public final <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.apache.sling.api.adapter.SlingAdaptable
-
-