@ProviderType
public interface ResourcePredicates
Modifier and Type | Interface and Description |
---|---|
static interface |
ResourcePredicates.ResourcePredicateBuilder
Provides a transitional state where multiple parameters can be applied before
creating the Predicate
|
Modifier and Type | Method and Description |
---|---|
Predicate<org.apache.sling.api.resource.Resource> |
parse(String filter)
Creates a Predicate
|
Predicate<org.apache.sling.api.resource.Resource> |
parse(String filter,
String charEncoding)
Creates a Predicate
|
ResourcePredicates.ResourcePredicateBuilder |
usingParameterMap(Map<String,Object> params)
Replaces the existing parameter map with the supplied Map
|
ResourcePredicates.ResourcePredicateBuilder |
withParameter(String key,
Object value)
Adds a key - value pair that can then be evaluated as part of the
Predicate
|
ResourcePredicates.ResourcePredicateBuilder |
withParameters(Map<String,Object> params)
Add a series of key - value pairs that can then be evaluated as part of the
Predicate
|
Predicate<org.apache.sling.api.resource.Resource> parse(String filter)
filter
- ResourceFilterException
Predicate<org.apache.sling.api.resource.Resource> parse(String filter, String charEncoding)
filter
- charEncoding
- ResourceFilterException
ResourcePredicates.ResourcePredicateBuilder withParameters(Map<String,Object> params)
params
- Map of Key - Value pairsResourcePredicates.ResourcePredicateBuilder withParameter(String key, Object value)
key
- value
- ResourcePredicates.ResourcePredicateBuilder usingParameterMap(Map<String,Object> params)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.