| org.eclipse.sisu.bean.BeanProperty<T> |
Represents a bean property such as a field or setter method.
// like...
@SomeAnnotation
SomeType someProperty;
// ...or...
@SomeAnnotation
void setSomeProperty( SomeType _someProperty )
{
// ...etc...
}
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract <A extends Annotation> A |
getAnnotation(Class<A> annotationType)
Returns the property annotation with the specified type.
| ||||||||||
| abstract String |
getName()
Returns the normalized property name excluding the namespace; for example
"address". | ||||||||||
| abstract TypeLiteral<T> |
getType()
Returns the reified generic type of the property; for example
TypeLiteral<List<String>>. | ||||||||||
| abstract <B> void |
set(B bean, T value)
Sets the property in the given bean to the given value.
| ||||||||||
Returns the property annotation with the specified type.
| annotationType | The annotation type |
|---|
null
Returns the normalized property name excluding the namespace; for example "address".
Returns the reified generic type of the property; for example TypeLiteral<List<String>>.
Sets the property in the given bean to the given value.
| bean | The bean to update |
|---|---|
| value | The value to set |