public interface ResourceModelResolver
Modifier and Type | Method and Description |
---|---|
Object |
resolveMostSpecificModel(org.apache.sling.api.resource.Resource resource) |
Object |
resolveMostSpecificModelIncludingModelsForBaseTypes(org.apache.sling.api.resource.Resource resource) |
Object |
resolveMostSpecificModelWithName(org.apache.sling.api.resource.Resource resource,
String name) |
@CheckForNull Object resolveMostSpecificModelWithName(org.apache.sling.api.resource.Resource resource, String name)
resource
- must not be null
name
- must not be null
null
. The
model's name
matches the given name.@CheckForNull Object resolveMostSpecificModel(org.apache.sling.api.resource.Resource resource)
resource
- must not be null
.null
if
there is no unique most specific model. Models for base types such as nt:unstructured
or nt:base are not considered.@CheckForNull Object resolveMostSpecificModelIncludingModelsForBaseTypes(org.apache.sling.api.resource.Resource resource)
resource
- must not be null
.null
if
there is no unique most specific model. Models for base types such as nt:unstructured
or nt:base are considered.Copyright © 2024. All rights reserved.