org.apache.sling.bundleresource.impl
Class BundleResource

java.lang.Object
  extended by org.apache.sling.api.adapter.SlingAdaptable
      extended by org.apache.sling.api.resource.AbstractResource
          extended by org.apache.sling.bundleresource.impl.BundleResource
All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource

public class BundleResource
extends org.apache.sling.api.resource.AbstractResource

A Resource that wraps a Bundle entry


Field Summary
 
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING
 
Constructor Summary
BundleResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, org.apache.sling.bundleresource.impl.BundleResourceCache bundle, org.apache.sling.bundleresource.impl.MappedPath mappedPath, String resourcePath)
           
 
Method Summary
<Type> Type
adaptTo(Class<Type> type)
           
 String getPath()
           
static BundleResource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, org.apache.sling.bundleresource.impl.BundleResourceCache bundle, org.apache.sling.bundleresource.impl.MappedPath mappedPath, String resourcePath)
           
 org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
           
 org.apache.sling.api.resource.ResourceResolver getResourceResolver()
           
 String getResourceSuperType()
          Returns null, bundle resources have no super type
 String getResourceType()
           
 Iterator<org.apache.sling.api.resource.Resource> listChildren()
           
 String toString()
           
 
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, isResourceType
 
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
 

Constructor Detail

BundleResource

public BundleResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
                      org.apache.sling.bundleresource.impl.BundleResourceCache bundle,
                      org.apache.sling.bundleresource.impl.MappedPath mappedPath,
                      String resourcePath)
Method Detail

getResource

public static BundleResource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
                                         org.apache.sling.bundleresource.impl.BundleResourceCache bundle,
                                         org.apache.sling.bundleresource.impl.MappedPath mappedPath,
                                         String resourcePath)

getPath

public String getPath()

getResourceType

public String getResourceType()

getResourceSuperType

public String getResourceSuperType()
Returns null, bundle resources have no super type


getResourceMetadata

public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()

getResourceResolver

public org.apache.sling.api.resource.ResourceResolver getResourceResolver()

adaptTo

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

toString

public String toString()
Overrides:
toString in class Object

listChildren

public 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


Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.