Class PropertyFilterDefinition

  • All Implemented Interfaces:
    java.io.Serializable

    public class PropertyFilterDefinition
    extends java.lang.Object
    implements java.io.Serializable
    Class containing the constraints for filtering nested properties.
    Since:
    8.2
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyFilterDefinition​(int maxNestingDepth, java.util.List<java.lang.String> ignorePackageNamesStartingWith)
      Create a property filter with max nesting depth and package names to ignore.
    • Constructor Detail

      • PropertyFilterDefinition

        public PropertyFilterDefinition​(int maxNestingDepth,
                                        java.util.List<java.lang.String> ignorePackageNamesStartingWith)
        Create a property filter with max nesting depth and package names to ignore.
        Parameters:
        maxNestingDepth - The maximum amount of nesting levels for sub-properties.
        ignorePackageNamesStartingWith - Ignore package names that start with this string, for example "java.lang".
    • Method Detail

      • getMaxNestingDepth

        public int getMaxNestingDepth()
        Returns the maximum amount of nesting levels for sub-properties.
        Returns:
        maximum nesting depth
      • getIgnorePackageNamesStartingWith

        public java.util.List<java.lang.String> getIgnorePackageNamesStartingWith()
        Returns a list of package name prefixes to ignore.
        Returns:
        list of strings that
      • getDefaultFilter

        public static PropertyFilterDefinition getDefaultFilter()
        Get the default nested property filtering conditions.
        Returns:
        default property filter