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
implements org.apache.sling.api.resource.Resource

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
 
Methods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, isResourceType
 

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()
Specified by:
getPath in interface org.apache.sling.api.resource.Resource

getResourceType

public String getResourceType()
Specified by:
getResourceType in interface org.apache.sling.api.resource.Resource

getResourceSuperType

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

Specified by:
getResourceSuperType in interface org.apache.sling.api.resource.Resource

getResourceMetadata

public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
Specified by:
getResourceMetadata in interface org.apache.sling.api.resource.Resource

getResourceResolver

public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
Specified by:
getResourceResolver in interface org.apache.sling.api.resource.Resource

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-2013 The Apache Software Foundation. All Rights Reserved.