public class ResourcePredicateImpl extends Object implements ResourcePredicates
Modifier and Type | Class and Description |
---|---|
static class |
ResourcePredicateImpl.ResourcePredicateBuilderImpl |
ResourcePredicates.ResourcePredicateBuilder
Constructor and Description |
---|
ResourcePredicateImpl() |
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
|
public Predicate<org.apache.sling.api.resource.Resource> parse(String filter)
ResourcePredicates
parse
in interface ResourcePredicates
public Predicate<org.apache.sling.api.resource.Resource> parse(String filter, String charEncoding)
ResourcePredicates
parse
in interface ResourcePredicates
public ResourcePredicates.ResourcePredicateBuilder withParameters(Map<String,Object> params)
ResourcePredicates
withParameters
in interface ResourcePredicates
params
- Map of Key - Value pairspublic ResourcePredicates.ResourcePredicateBuilder withParameter(String key, Object value)
ResourcePredicates
withParameter
in interface ResourcePredicates
public ResourcePredicates.ResourcePredicateBuilder usingParameterMap(Map<String,Object> params)
ResourcePredicates
usingParameterMap
in interface ResourcePredicates
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.