public interface BeanProperty<T>
// like...
@SomeAnnotation
SomeType someProperty;
// ...or...
@SomeAnnotation
void setSomeProperty( SomeType _someProperty )
{
// ...etc...
}
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
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>>. |
<B> void |
set(B bean,
T value)
Sets the property in the given bean to the given value.
|
<A extends Annotation> A getAnnotation(Class<A> annotationType)
annotationType - The annotation typenullcom.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 setCopyright © 2016. All Rights Reserved.