Class 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

      Fields 
      Modifier and Type Field Description
      static String RESOURCE_TYPE  
      • Fields inherited from interface org.apache.sling.api.resource.Resource

        RESOURCE_TYPE_NON_EXISTING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <AdapterType>
      AdapterType
      adaptTo​(Class<AdapterType> type)
      org.apache.sling.api.resource.ValueMap getValueMap()
      • 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
      • Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable

        setAdapterManager, unsetAdapterManager
    • 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 resource
        data - initial value map data
    • Method Detail

      • getValueMap

        public final org.apache.sling.api.resource.ValueMap getValueMap()
        Specified by:
        getValueMap in interface org.apache.sling.api.resource.Resource
        Overrides:
        getValueMap in class org.apache.sling.api.resource.AbstractResource
      • adaptTo

        public final <AdapterType> AdapterType adaptTo​(Class<AdapterType> type)
        Specified by:
        adaptTo in interface org.apache.sling.api.adapter.Adaptable
        Overrides:
        adaptTo in class org.apache.sling.api.adapter.SlingAdaptable