public final class ConfigurationResourceWrapper
extends org.apache.sling.api.resource.AbstractResource
ResourceWrapper because when adapting
to a Sling Model the replace valuemap would not take effect but the original value map.| Constructor and Description |
|---|
ConfigurationResourceWrapper(org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.resource.ValueMap props) |
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(@NotNull Class<AdapterType> type) |
org.apache.sling.api.resource.Resource |
getChild(String relPath) |
Iterable<org.apache.sling.api.resource.Resource> |
getChildren() |
String |
getName() |
org.apache.sling.api.resource.Resource |
getParent() |
@NotNull String |
getPath() |
@NotNull org.apache.sling.api.resource.ResourceMetadata |
getResourceMetadata() |
@NotNull org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
String |
getResourceSuperType() |
@NotNull String |
getResourceType() |
org.apache.sling.api.resource.ValueMap |
getValueMap() |
boolean |
hasChildren() |
boolean |
isResourceType(String resourceType) |
Iterator<org.apache.sling.api.resource.Resource> |
listChildren() |
String |
toString() |
public ConfigurationResourceWrapper(org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.resource.ValueMap props)
public <AdapterType> AdapterType adaptTo(@NotNull
@NotNull Class<AdapterType> type)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.api.adapter.SlingAdaptablepublic org.apache.sling.api.resource.ValueMap getValueMap()
getValueMap in interface org.apache.sling.api.resource.ResourcegetValueMap in class org.apache.sling.api.resource.AbstractResource@NotNull public @NotNull String getPath()
public String getName()
getName in interface org.apache.sling.api.resource.ResourcegetName in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.Resource getParent()
getParent in interface org.apache.sling.api.resource.ResourcegetParent in class org.apache.sling.api.resource.AbstractResourcepublic Iterator<org.apache.sling.api.resource.Resource> listChildren()
listChildren in interface org.apache.sling.api.resource.ResourcelistChildren in class org.apache.sling.api.resource.AbstractResourcepublic Iterable<org.apache.sling.api.resource.Resource> getChildren()
getChildren in interface org.apache.sling.api.resource.ResourcegetChildren in class org.apache.sling.api.resource.AbstractResourcepublic org.apache.sling.api.resource.Resource getChild(String relPath)
getChild in interface org.apache.sling.api.resource.ResourcegetChild in class org.apache.sling.api.resource.AbstractResource@NotNull public @NotNull String getResourceType()
public String getResourceSuperType()
public boolean hasChildren()
hasChildren in interface org.apache.sling.api.resource.ResourcehasChildren in class org.apache.sling.api.resource.AbstractResourcepublic boolean isResourceType(String resourceType)
isResourceType in interface org.apache.sling.api.resource.ResourceisResourceType in class org.apache.sling.api.resource.AbstractResource@NotNull public @NotNull org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
@NotNull public @NotNull org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public String toString()
toString in class Objectresource type and
path as well as the string representation of the wrapped resource}.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.