public class MockResource
extends org.apache.sling.api.resource.AbstractResource
Constructor and Description |
---|
MockResource(String path,
Map<String,Object> props,
org.apache.sling.api.resource.ResourceResolver resolver) |
Modifier and Type | Method and Description |
---|---|
<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() |
org.apache.sling.api.resource.ValueMap |
getValueMap() |
String |
toString() |
getChild, getChildren, getName, getParent, isResourceType, listChildren
public String getPath()
public String getResourceType()
public String getResourceSuperType()
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo
in interface org.apache.sling.api.adapter.Adaptable
adaptTo
in class org.apache.sling.api.adapter.SlingAdaptable
public org.apache.sling.api.resource.ValueMap getValueMap()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.