Class BeanPropertiesFilter

  • Direct Known Subclasses:
    BeanPropertiesFilter.AllProperties

    public class BeanPropertiesFilter
    extends java.lang.Object
    Basic bean filtering. It's based on Jackson's BeanPropertyFilter but uses slightly different method signatures
    Author:
    Gethin James
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanPropertiesFilter​(java.util.Set<java.lang.String> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAllowed​(java.lang.String propertyName)
      Indicates if the given property name is permitted to be used ie.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BeanPropertiesFilter

        public BeanPropertiesFilter​(java.util.Set<java.lang.String> properties)
    • Method Detail

      • isAllowed

        public boolean isAllowed​(java.lang.String propertyName)
        Indicates if the given property name is permitted to be used ie. is not filtered out
        Parameters:
        propertyName - - bean property name
        Returns:
        true - if the property is allowed to be used.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object