public interface Property extends Trait
Inspectors
can treat them all the same.Modifier and Type | Method and Description |
---|---|
String |
getGenericType()
Gets the generic type of the property, or null if the type is not parameterized.
|
String |
getType()
Gets the type of the property.
|
boolean |
isReadable() |
boolean |
isWritable() |
Object |
read(Object obj)
Read the property for the given object.
|
void |
write(Object obj,
Object value)
Write the property for the given object.
|
getAnnotation, getName, isAnnotationPresent
String getType()
Type is returned as a String, so that it can express something other than a
java.lang.Class
(eg. javassist.CtClass
or
org.jboss.forge.parser.java.JavaClass
).
boolean isReadable()
Object read(Object obj)
Used by PropertyInspector to determine subtypes, and by BaseObjectInspector to traverse the object graph.
boolean isWritable()
void write(Object obj, Object value)
Used by BeanUtilsBindingProcessor, and is also nicely symmetrical with read
.
String getGenericType()
Type is returned as a String, so that it can express something other than a
java.lang.Class
(eg. javassist.CtClass
or
org.jboss.forge.parser.java.JavaClass
).
Copyright © 2015. All Rights Reserved.