Class ValueMapResource

    • Constructor Detail

      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                String path,
                                String resourceType)
        Instantiates with an empty ValueMap initially.
        Parameters:
        resourceResolver - The resource resolver
        path - The resource path
        resourceType - The resource type
      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                String path,
                                String resourceType,
                                @Nonnull
                                ValueMap vm)
        Instantiates with the given ValueMap.
        Parameters:
        resourceResolver - The resource resolver
        path - The resource path
        resourceType - The resource type
        vm - The ValueMap of the resource
      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                String path,
                                String resourceType,
                                @Nonnull
                                ValueMap vm,
                                @CheckForNull
                                Collection<Resource> children)
        Instantiates with the given child resources.
        Parameters:
        resourceResolver - The resource resolver
        path - The resource path
        resourceType - The resource type
        vm - The ValueMap of the resource
        children - The children of the resource
      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                ResourceMetadata rm,
                                String resourceType)
        Instantiates with an empty ValueMap initially.
        Parameters:
        resourceResolver - The resource resolver
        rm - The resource meta data
        resourceType - The resource type
      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                ResourceMetadata rm,
                                String resourceType,
                                @Nonnull
                                ValueMap vm)
        Instantiates with the given ValueMap.
        Parameters:
        resourceResolver - The resource resolver
        rm - The resource meta data
        resourceType - The resource type
        vm - The ValueMap of the resource
      • ValueMapResource

        public ValueMapResource​(ResourceResolver resourceResolver,
                                ResourceMetadata rm,
                                String resourceType,
                                @Nonnull
                                ValueMap vm,
                                @CheckForNull
                                Collection<Resource> children)
        Instantiates with the given child resources.
        Parameters:
        resourceResolver - The resource resolver
        rm - The resource meta data
        resourceType - The resource type
        vm - The ValueMap of the resource
        children - The children of the resource