public class Setter extends Accessor
| Constructor and Description |
|---|
Setter(java.lang.Object that,
java.lang.reflect.Method method)
Constructs a new setter wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElementName()
Returns the name of the element from its corresponding setter method.
|
java.lang.reflect.Type |
getTypeOfSetterParameter()
Returns the
Type of the setter parameter. |
void |
invoke(java.lang.Object value)
Invokes the setter method with the given parameter.
|
public Setter(java.lang.Object that,
java.lang.reflect.Method method)
that - an arbitrary objectmethod - a setter methodMethodUtils.isSetter(java.lang.reflect.Method)public java.lang.String getElementName()
getElementName in class Accessorpublic void invoke(java.lang.Object value)
value - an arbitrary objectpublic java.lang.reflect.Type getTypeOfSetterParameter()
Type of the setter parameter.Type of method parameter