|
||||||||||
| 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(Class<A> annotationType)
Returns the property annotation with the specified type. |
|
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 Annotation> A getAnnotation(Class<A> annotationType)
annotationType - The annotation type
nullcom.google.inject.TypeLiteral<T> getType()
TypeLiteral<List<String>>.
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 | |||||||||