public class FilteredClassAccessor extends AbstractAnnotatedAccessor implements ClassAccessor
Modifier and Type | Field and Description |
---|---|
protected ClassAccessor |
delegate |
protected PropertyAccessor[] |
keyProperties |
protected PropertyAccessor[] |
properties |
annotations
copyright
Modifier | Constructor and Description |
---|---|
protected |
FilteredClassAccessor(ClassAccessor delegate,
boolean whitelist,
String... properties) |
Modifier and Type | Method and Description |
---|---|
static FilteredClassAccessor |
exclude(ClassAccessor classAccessor,
String... properties) |
PropertyAccessor[] |
getKeyProperties() |
String |
getName() |
PropertyAccessor[] |
getProperties() |
PropertyAccessor |
getProperty(String propertyName) |
Class<?> |
getType()
The type of the objects this accessor can operate on.
|
static FilteredClassAccessor |
include(ClassAccessor classAccessor,
String... properties) |
Object |
newInstance() |
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
protected final ClassAccessor delegate
protected final PropertyAccessor[] properties
protected final PropertyAccessor[] keyProperties
protected FilteredClassAccessor(ClassAccessor delegate, boolean whitelist, String... properties)
public String getName()
getName
in interface ClassAccessor
public Class<?> getType()
ClassAccessor
getType
in interface ClassAccessor
public PropertyAccessor getProperty(String propertyName) throws NoSuchFieldException
getProperty
in interface ClassAccessor
NoSuchFieldException
public PropertyAccessor[] getProperties()
getProperties
in interface ClassAccessor
public PropertyAccessor[] getKeyProperties()
getKeyProperties
in interface ClassAccessor
public Object newInstance()
newInstance
in interface ClassAccessor
public static FilteredClassAccessor exclude(ClassAccessor classAccessor, String... properties)
public static FilteredClassAccessor include(ClassAccessor classAccessor, String... properties)