public class PropertyInfo<PropertyType> extends AnnotatedNode.BaseAnnotatedNode
AnnotatedNode.BaseAnnotatedNode| Modifier and Type | Field and Description |
|---|---|
protected ClassInfo |
enclosingClass |
protected Field |
field |
protected Method |
readMethod |
protected Class<PropertyType> |
type |
protected Method |
writeMethod |
protected Map<Class,Method> |
writeMethods |
annotations, name| Modifier and Type | Method and Description |
|---|---|
ClassInfo<?> |
getClassInfo() |
Field |
getField()
Returns field associated with this property if exists.
|
Type |
getGenericType()
Generic type of the property
|
Method |
getReadMethod()
Returns accessor method for this property if exists
|
Class<PropertyType> |
getType()
Type of the property
|
TypeInfo<PropertyType> |
getTypeInfo()
Returns type info for this property embedding actual property location to resolve type variables
|
PropertyType |
getValue(Object bean)
Get property value.
|
Method |
getWriteMethod()
Returns mutator method for this property if exists
|
Map<Class,Method> |
getWriteMethods()
Write methods what found on class and all parents for this property.
|
boolean |
isCollection() |
boolean |
isIterable() |
boolean |
isMapping() |
boolean |
isReadable()
Check what property is readable
|
boolean |
isWritable()
Check what property is writable
|
void |
setValue(Object bean,
PropertyType val)
Set property value.
|
getAnnotataions, getAnnotation, getName, hasAnnotationprotected Class<PropertyType> type
protected Method writeMethod
protected Method readMethod
protected Field field
protected ClassInfo enclosingClass
public ClassInfo<?> getClassInfo()
public PropertyType getValue(Object bean)
bean - instancepublic void setValue(Object bean, PropertyType val)
bean - instanceval - value to setpublic Class<PropertyType> getType()
public Type getGenericType()
public TypeInfo<PropertyType> getTypeInfo()
public boolean isWritable()
public boolean isReadable()
public boolean isCollection()
public boolean isMapping()
public boolean isIterable()
public Method getWriteMethod()
public Method getReadMethod()
public Field getField()
Copyright © 2016. All rights reserved.