Class PropertyFilter

java.lang.Object
com.vaadin.flow.templatemodel.PropertyFilter
All Implemented Interfaces:
Predicate<String>

@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 use LitTemplate 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 Details

    • ACCEPT_ALL

      public static final PropertyFilter ACCEPT_ALL
      Deprecated.
      An unwrapped filter that accepts all property names.
  • Constructor Details

    • 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, not null
    • 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, not null
      scopeName - the name used in the outer filter when referencing properties in the inner scope, not null
      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, not null
      scopeName - the name used in the outer filter when referencing properties in the inner scope, not null
  • Method Details

    • test

      public boolean test(String propertyName)
      Deprecated.
      Specified by:
      test in interface Predicate<String>
    • 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