org.apache.sling.bundleresource.impl
Class BundleResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
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
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)
|
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 |
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)
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.