public class PropertyAccessor extends java.lang.Object implements PropertyAwareAccessor
Constructor and Description |
---|
PropertyAccessor(java.lang.String propertyName,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object target) |
java.util.Set<java.lang.String> |
getCategoriesFromAnnotation() |
BeanPropertyElementSelector |
getElementSelector() |
<T extends java.lang.annotation.Annotation> |
getFieldAnnotation(java.lang.Class<T> annotationClass) |
java.util.Set<java.lang.annotation.Annotation> |
getFieldAnnotations() |
java.lang.String |
getPropertyName() |
<T extends java.lang.annotation.Annotation> |
getReadMethodAnnotation(java.lang.Class<T> annotationClass) |
java.util.Set<java.lang.annotation.Annotation> |
getReadMethodAnnotations() |
java.lang.Class<?> |
getType() |
boolean |
isExcludedByAnnotation() |
void |
set(java.lang.Object target,
java.lang.Object value) |
java.lang.String |
toString() |
void |
unset(java.lang.Object target) |
public PropertyAccessor(java.lang.String propertyName, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod)
public final java.util.Set<java.lang.String> getCategoriesFromAnnotation()
getCategoriesFromAnnotation
in interface CategoryAware
public boolean isExcludedByAnnotation()
isExcludedByAnnotation
in interface ExclusionAware
public java.lang.String getPropertyName()
getPropertyName
in interface PropertyAwareAccessor
public java.util.Set<java.lang.annotation.Annotation> getFieldAnnotations()
getFieldAnnotations
in interface PropertyAwareAccessor
public <T extends java.lang.annotation.Annotation> T getFieldAnnotation(java.lang.Class<T> annotationClass)
getFieldAnnotation
in interface PropertyAwareAccessor
public java.util.Set<java.lang.annotation.Annotation> getReadMethodAnnotations()
getReadMethodAnnotations
in interface PropertyAwareAccessor
public <T extends java.lang.annotation.Annotation> T getReadMethodAnnotation(java.lang.Class<T> annotationClass)
getReadMethodAnnotation
in interface PropertyAwareAccessor
public BeanPropertyElementSelector getElementSelector()
getElementSelector
in interface Accessor
public void set(java.lang.Object target, java.lang.Object value)
public java.lang.Class<?> getType()
getType
in interface TypeAwareAccessor
public java.lang.String toString()
toString
in class java.lang.Object