com.vaadin.flow.templatemodel.
Class PropertyFilter
- java.lang.Object
-
- com.vaadin.flow.templatemodel.PropertyFilter
-
@Deprecated public class PropertyFilter extends Object implements Predicate<String>
Deprecated.This functionality is internal and bound to template model which is not supported for lit template. Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.Property name filter that supports composition for resolving sub properties.
Since:
1.0
Author:
Vaadin Ltd
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyFilter
ACCEPT_ALL
Deprecated.
An unwrapped filter that accepts all property names.
-
Constructor Summary
Constructors Constructor Description PropertyFilter(PropertyFilter outerFilter, String scopeName)
Deprecated.
Creates a new filter by adapting a filter from an outer scope.
PropertyFilter(PropertyFilter outerFilter, String scopeName, Predicate<String> predicate)
Deprecated.
Creates a new filter by combining a predicate with a filter for an outer scope.
PropertyFilter(Predicate<String> predicate)
Deprecated.
Creates a new unwrapped filter from the given predicate.
-
Method Summary
All Methods Modifier and Type Method Description String
getPrefix()
Deprecated.
Get the full path prefix of this property filter.
boolean
test(String propertyName)
Deprecated.
-
-
-
Field Detail
-
ACCEPT_ALL
public static final PropertyFilter ACCEPT_ALL
Deprecated.An unwrapped filter that accepts all property names.
-
-
Constructor Detail
-
PropertyFilter
public PropertyFilter(Predicate<String> predicate)
Deprecated.Creates a new unwrapped filter from the given predicate.
Parameters:
predicate
- the predicate to use for this filter, notnull
-
PropertyFilter
public PropertyFilter(PropertyFilter outerFilter, String scopeName, Predicate<String> predicate)
Deprecated.Creates a new filter by combining a predicate with a filter for an outer scope.
Parameters:
outerFilter
- the filter of the outer scope, notnull
scopeName
- the name used in the outer filter when referencing properties in the inner scope, notnull
predicate
- a predicate matching property names in the inner scope
-
PropertyFilter
public PropertyFilter(PropertyFilter outerFilter, String scopeName)
Deprecated.Creates a new filter by adapting a filter from an outer scope.
Parameters:
outerFilter
- the filter of the outer scope, notnull
scopeName
- the name used in the outer filter when referencing properties in the inner scope, notnull
-
-
Method Detail
-
test
public boolean test(String propertyName)
Deprecated.
-
getPrefix
public String getPrefix()
Deprecated.Get the full path prefix of this property filter. The prefix is accumulated when constructing new property filters from outer filters and scope names.
Returns:
the prefix string of this filter
-
-