public class KeepPropertiesBeanFilter
extends java.lang.Object
JSONFilter
, IBeanFilter
Constructor and Description |
---|
KeepPropertiesBeanFilter(java.util.Collection propsToKeep) List of properties to keep. |
Modifier and Type | Method and Description |
---|---|
java.util.Map | filter(java.lang.Object obj) This method is called to filter a bean (IBeanFilter Interface). |
public KeepPropertiesBeanFilter(java.util.Collection propsToKeep)
public java.util.Map filter(java.lang.Object obj) throws java.lang.Exception
obj
- the bean to convertjava.lang.Exception