Class SyntheticQueryResult

  • All Implemented Interfaces:
    org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource

    public class SyntheticQueryResult
    extends org.apache.sling.api.resource.SyntheticResource
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ResourceFilter filter  
      protected javax.jcr.query.QueryResult queryResult  
      protected org.apache.sling.api.resource.ModifiableValueMap valueMap  
      • 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)  
      @NotNull Iterator<org.apache.sling.api.resource.Resource> listChildren()  
      void putValue​(String path, Object value)  
      • 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, getValueMap, hasChildren, isResourceType
      • Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable

        setAdapterManager, unsetAdapterManager
    • Field Detail

      • queryResult

        protected final javax.jcr.query.QueryResult queryResult
      • valueMap

        protected final org.apache.sling.api.resource.ModifiableValueMap valueMap
    • Constructor Detail

      • SyntheticQueryResult

        public SyntheticQueryResult​(org.apache.sling.api.resource.ResourceResolver resolver,
                                    String path,
                                    javax.jcr.query.QueryResult queryResult)
      • SyntheticQueryResult

        public SyntheticQueryResult​(org.apache.sling.api.resource.ResourceResolver resolver,
                                    String path,
                                    javax.jcr.query.QueryResult queryResult,
                                    ResourceFilter filter)
      • SyntheticQueryResult

        public SyntheticQueryResult​(org.apache.sling.api.resource.ResourceResolver resolver,
                                    String path,
                                    javax.jcr.query.QueryResult queryResult,
                                    ResourceFilter filter,
                                    String resourceType)
    • Method Detail

      • adaptTo

        public <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
      • putValue

        public void putValue​(String path,
                             Object value)
      • listChildren

        @NotNull
        public @NotNull Iterator<org.apache.sling.api.resource.Resource> listChildren()
        Specified by:
        listChildren in interface org.apache.sling.api.resource.Resource
        Overrides:
        listChildren in class org.apache.sling.api.resource.AbstractResource