org.apache.sling.testing.resourceresolver
Class MockResource

java.lang.Object
  extended by org.apache.sling.api.adapter.SlingAdaptable
      extended by org.apache.sling.api.resource.AbstractResource
          extended by org.apache.sling.testing.resourceresolver.MockResource
All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource

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


Field Summary
 
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING
 
Constructor Summary
MockResource(String path, Map<String,Object> props, org.apache.sling.api.resource.ResourceResolver resolver)
           
 
Method Summary
<AdapterType>
AdapterType
adaptTo(Class<AdapterType> type)
           
 String getPath()
           
 org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
           
 org.apache.sling.api.resource.ResourceResolver getResourceResolver()
           
 String getResourceSuperType()
           
 String getResourceType()
           
 String toString()
           
 
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, isResourceType, listChildren
 
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

MockResource

public MockResource(String path,
                    Map<String,Object> props,
                    org.apache.sling.api.resource.ResourceResolver resolver)
Method Detail

getPath

public String getPath()

getResourceType

public String getResourceType()

getResourceSuperType

public String getResourceSuperType()

getResourceMetadata

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

getResourceResolver

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

adaptTo

public <AdapterType> AdapterType adaptTo(Class<AdapterType> 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


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