public class BeanFilter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BeanFilter.Unfiltered
Annotation for required field that should not be filtered
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_FIELDS |
static String |
DELIMITER |
| Constructor and Description |
|---|
BeanFilter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createFilteredBean(Object data,
Set<String> fields)
Create a proxy object that filter object fields according to set of fields.
|
List<String> |
getBeanFields(Class<?> bean,
int depth)
Provide list of all fields for a specific bean
|
Set<String> |
processBeanFields(Collection<String> fields) |
public static final String ALL_FIELDS
public static final String DELIMITER
public Object createFilteredBean(Object data, Set<String> fields)
data - the object to filterfields - list of fields to pass through.public Set<String> processBeanFields(Collection<String> fields)
Copyright © 2007-2012. All Rights Reserved.