public final class StubResource
extends org.apache.sling.api.resource.SyntheticResource
Constructor and Description |
---|
StubResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String resourceURI)
Create a new stub resource.
|
Modifier and Type | Method and Description |
---|---|
org.apache.sling.api.resource.Resource |
getParent() |
String |
getResourceType() |
String |
toString() |
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType
getChild, getChildren, getName, getValueMap, hasChildren, isResourceType, listChildren
adaptTo, setAdapterManager, unsetAdapterManager
public StubResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String resourceURI)
resourceResolver
- The resource resolver.resourceURI
- The path of the resource.public final String getResourceType()
getResourceType
in interface org.apache.sling.api.resource.Resource
getResourceType
in class org.apache.sling.api.resource.SyntheticResource
SyntheticResource.getResourceType()
public String toString()
toString
in class org.apache.sling.api.resource.SyntheticResource
public org.apache.sling.api.resource.Resource getParent()
getParent
in interface org.apache.sling.api.resource.Resource
getParent
in class org.apache.sling.api.resource.AbstractResource
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.