| Modifier and Type | Field and Description |
|---|---|
static PropertyFilter |
ACCEPT_ALL
An unwrapped filter that accepts all property names.
|
| Constructor and Description |
|---|
PropertyFilter(Predicate<String> predicate)
Creates a new unwrapped filter from the given predicate.
|
PropertyFilter(PropertyFilter outerFilter,
String scopeName)
Creates a new filter by adapting a filter from an outer scope.
|
PropertyFilter(PropertyFilter outerFilter,
String scopeName,
Predicate<String> predicate)
Creates a new filter by combining a predicate with a filter for an outer
scope.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix()
Get the full path prefix of this property filter.
|
boolean |
test(String propertyName) |
public static final PropertyFilter ACCEPT_ALL
public PropertyFilter(Predicate<String> predicate)
predicate - the predicate to use for this filter, not nullpublic PropertyFilter(PropertyFilter outerFilter, String scopeName, Predicate<String> predicate)
outerFilter - the filter of the outer scope, not nullscopeName - the name used in the outer filter when referencing properties
in the inner scope, not nullpredicate - a predicate matching property names in the inner scopepublic PropertyFilter(PropertyFilter outerFilter, String scopeName)
outerFilter - the filter of the outer scope, not nullscopeName - the name used in the outer filter when referencing properties
in the inner scope, not nullpublic String getPrefix()
Copyright © 2025. All rights reserved.