public class FilteredClassAccessor extends AbstractAnnotatedAccessor implements ClassAccessor
| Modifier and Type | Field and Description |
|---|---|
protected ClassAccessor |
delegate |
protected PropertyAccessor[] |
keyProperties |
protected PropertyAccessor[] |
properties |
annotationscopyright| 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, isAnnotationPresentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentprotected 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 ClassAccessorpublic Class<?> getType()
ClassAccessorgetType in interface ClassAccessorpublic PropertyAccessor getProperty(String propertyName) throws NoSuchFieldException
getProperty in interface ClassAccessorNoSuchFieldExceptionpublic PropertyAccessor[] getProperties()
getProperties in interface ClassAccessorpublic PropertyAccessor[] getKeyProperties()
getKeyProperties in interface ClassAccessorpublic Object newInstance()
newInstance in interface ClassAccessorpublic static FilteredClassAccessor exclude(ClassAccessor classAccessor, String... properties)
public static FilteredClassAccessor include(ClassAccessor classAccessor, String... properties)