|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanProperty<T>
Represents a bean property such as a field or setter method.
// like... @SomeAnnotation SomeType someProperty; // ...or... @SomeAnnotation void setSomeProperty( SomeType _someProperty ) { // ...etc... }
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<A> annotationType)
Returns the property annotation with the specified type. |
|
java.lang.String |
getName()
Returns the normalized property name excluding the namespace; for example "address" . |
|
com.google.inject.TypeLiteral<T> |
getType()
Returns the reified generic type of the property; for example TypeLiteral<List<String>> . |
|
|
set(B bean,
T value)
Sets the property in the given bean to the given value. |
Method Detail |
---|
<A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
annotationType
- The annotation type
null
com.google.inject.TypeLiteral<T> getType()
TypeLiteral<List<String>>
.
java.lang.String getName()
"address"
.
<B> void set(B bean, T value)
bean
- The bean to updatevalue
- The value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |