public class FieldPropertyInfo extends AbstractPropertyInfo
annotationMap, annotationsArray
Modifier | Constructor and Description |
---|---|
|
FieldPropertyInfo(FieldInfo field) |
protected |
FieldPropertyInfo(FieldInfo field,
boolean setAnnotations) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Object |
get(Object bean)
Get the property value
|
FieldInfo |
getFieldInfo()
Get the field info
in case impl uses field to
handle property ops.
|
MethodInfo |
getGetter()
Get the getter
|
MethodInfo |
getSetter()
Get the setter
|
boolean |
isReadable()
Is property readable.
|
boolean |
isWritable()
Is property writable.
|
void |
set(Object bean,
Object value)
Set the property value
|
void |
setGetter(MethodInfo getter)
Set the getter
|
void |
setSetter(MethodInfo setter)
Set the setter
|
void |
toString(org.jboss.util.JBossStringBuilder buffer) |
getBeanInfo, getHashCode, getName, getType, getUpperName, init, setType, toShortString
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
public FieldPropertyInfo(FieldInfo field)
protected FieldPropertyInfo(FieldInfo field, boolean setAnnotations)
public MethodInfo getGetter()
PropertyInfo
public void setGetter(MethodInfo getter)
PropertyInfo
getter
- the getterpublic MethodInfo getSetter()
PropertyInfo
public void setSetter(MethodInfo setter)
PropertyInfo
setter
- the setterpublic boolean isReadable()
PropertyInfo
public boolean isWritable()
PropertyInfo
public Object get(Object bean) throws Throwable
PropertyInfo
bean
- the beanThrowable
- for any errorpublic void set(Object bean, Object value) throws Throwable
PropertyInfo
bean
- the beanvalue
- the property valueThrowable
- for any errorpublic FieldInfo getFieldInfo()
PropertyInfo
getFieldInfo
in interface PropertyInfo
getFieldInfo
in class AbstractPropertyInfo
public boolean equals(Object object)
equals
in class AbstractPropertyInfo
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractPropertyInfo
Copyright © 2017 JBoss by Red Hat. All rights reserved.