|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.api.resource.SyntheticResource
org.apache.sling.api.resource.NonExistingResource
public final class NonExistingResource
Simple helper class representing nonexisting resources.
| Field Summary |
|---|
| Fields inherited from interface org.apache.sling.api.resource.Resource |
|---|
RESOURCE_TYPE_NON_EXISTING |
| Constructor Summary | |
|---|---|
NonExistingResource(ResourceResolver resourceResolver,
java.lang.String resourceURI)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getResourceType()
The resource type is meant to point to rendering/processing scripts, editing dialogs, etc. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.sling.api.resource.SyntheticResource |
|---|
adaptTo, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, setResourceType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NonExistingResource(ResourceResolver resourceResolver,
java.lang.String resourceURI)
| Method Detail |
|---|
public final java.lang.String getResourceType()
ResourceResourceResolver is free to set this to any suitable value such
as the primary node type of the JCR node from which the resource is
created.
If the resource instance represents a resource which is not actually
existing, this method returns the Resource.RESOURCE_TYPE_NON_EXISTING.
getResourceType in interface ResourcegetResourceType in class SyntheticResourcepublic java.lang.String toString()
toString in class SyntheticResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||