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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.apache.sling.api.resource.Resource

    RESOURCE_TYPE_NON_EXISTING
  • 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

    Modifier and Type
    Method
    Description
    final <AdapterType>
    AdapterType
    adaptTo(Class<AdapterType> type)
    final org.apache.sling.api.resource.ValueMap

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 resource
      data - initial value map data
  • Method Details

    • 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