public class MutableClassAccessor extends AbstractAnnotatedAccessor implements ClassAccessor
| Modifier and Type | Field and Description |
|---|---|
protected List<PropertyAccessor> |
keyProperties |
protected String |
name |
protected List<PropertyAccessor> |
properties |
protected Class<?> |
type |
annotationscopyright| Constructor and Description |
|---|
MutableClassAccessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyProperty(PropertyAccessor propertyAccessor) |
void |
addProperty(PropertyAccessor propertyAccessor) |
MutableClassAccessor |
configureAnnotation(Annotation annotation) |
PropertyAccessor[] |
getKeyProperties() |
List<PropertyAccessor> |
getMutableKeyProperties() |
List<PropertyAccessor> |
getMutableProperties() |
String |
getName() |
PropertyAccessor[] |
getProperties() |
PropertyAccessor |
getProperty(String propertyName) |
Class<?> |
getType()
The type of the objects this accessor can operate on.
|
Object |
newInstance() |
void |
setName(String name) |
void |
setType(Class<?> type) |
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentprotected String name
protected Class<?> type
protected final List<PropertyAccessor> properties
protected final List<PropertyAccessor> keyProperties
public String getName()
getName in interface ClassAccessorpublic void setName(String name)
public Class<?> getType()
ClassAccessorgetType in interface ClassAccessorpublic void setType(Class<?> type)
public 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 void addProperty(PropertyAccessor propertyAccessor)
public void addKeyProperty(PropertyAccessor propertyAccessor)
public List<PropertyAccessor> getMutableProperties()
public List<PropertyAccessor> getMutableKeyProperties()
public MutableClassAccessor configureAnnotation(Annotation annotation)