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 |
annotations
copyright
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, isAnnotationPresent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
protected String name
protected Class<?> type
protected final List<PropertyAccessor> properties
protected final List<PropertyAccessor> keyProperties
public String getName()
getName
in interface ClassAccessor
public void setName(String name)
public Class<?> getType()
ClassAccessor
getType
in interface ClassAccessor
public void setType(Class<?> type)
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 void addProperty(PropertyAccessor propertyAccessor)
public void addKeyProperty(PropertyAccessor propertyAccessor)
public List<PropertyAccessor> getMutableProperties()
public List<PropertyAccessor> getMutableKeyProperties()
public MutableClassAccessor configureAnnotation(Annotation annotation)