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 nullname - must not be nullnull. 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.