Class MappingPropertyFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map filters  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addPropertyFilter​(java.lang.Object target, PropertyFilter filter)  
      boolean apply​(java.lang.Object source, java.lang.String name, java.lang.Object value)  
      protected abstract boolean keyMatches​(java.lang.Object key, java.lang.Object source, java.lang.String name, java.lang.Object value)  
      void removePropertyFilter​(java.lang.Object target)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filters

        private java.util.Map filters
    • Constructor Detail

      • MappingPropertyFilter

        public MappingPropertyFilter()
      • MappingPropertyFilter

        public MappingPropertyFilter​(java.util.Map filters)
    • Method Detail

      • addPropertyFilter

        public void addPropertyFilter​(java.lang.Object target,
                                      PropertyFilter filter)
      • apply

        public boolean apply​(java.lang.Object source,
                             java.lang.String name,
                             java.lang.Object value)
        Specified by:
        apply in interface PropertyFilter
        Parameters:
        source - the owner of the property
        name - the name of the property
        value - the value of the property
        Returns:
        true if the property will be filtered out, false otherwise
      • removePropertyFilter

        public void removePropertyFilter​(java.lang.Object target)
      • keyMatches

        protected abstract boolean keyMatches​(java.lang.Object key,
                                              java.lang.Object source,
                                              java.lang.String name,
                                              java.lang.Object value)