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.SyntheticResource
Resource object that represents data that can be serialized to a resource's property.
-
Field Summary
FieldsFields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticChildAsPropertyResource(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
Modifier and TypeMethodDescriptionfinal <AdapterType>
AdapterTypefinal org.apache.sling.api.resource.ValueMapMethods inherited from class org.apache.sling.api.resource.SyntheticResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toStringMethods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, hasChildren, isResourceType, listChildrenMethods inherited from class org.apache.sling.api.adapter.SlingAdaptable
setAdapterManager, unsetAdapterManager
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
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 Details
-
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
- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.apache.sling.api.adapter.SlingAdaptable
-