| Modifier and Type | Field and Description |
|---|---|
| private final String | property
The property. |
| private static final int | SET_START_INDEX
Index of the first character of the set{p,P}roperty. |
| Access | Constructor and Description |
|---|---|
| public | PropertySetExecutor(Introspector
the introspector is, Class<?> the class to introspect clazz, String the property to set identifier, Object the value to set into the property arg)Creates an instance by attempting discovery of the set method. |
| Modifier and Type | Method and Description |
|---|---|
| private static Method | Returns: the method if found, null otherwisethe introspector is, final Class<?> the class to find the get method from clazz, String the name of the property to set property, Object the value to assign to the property arg)Discovers the method for a |
| public Object | execute(Object
The object to set the property in. o, Object The value. arg)Implements abstract org. |
| public Object | getTargetProperty()
Overrides org. |
| public Object | tryExecute(Object
The object to invoke the method from. o, Object The property to set in the object. identifier, Object The value to use as the property value. arg)Overrides org. |
| property | back to summary |
|---|---|
| private final String property The property. | |
| SET_START_INDEX | back to summary |
|---|---|
| private static final int SET_START_INDEX Index of the first character of the set{p,P}roperty. | |
| PropertySetExecutor | back to summary |
|---|---|
| public PropertySetExecutor(Introspector is, Class<?> clazz, String identifier, Object arg) Creates an instance by attempting discovery of the set method.
| |
| discover | back to summary |
|---|---|
| private static Method discover(Introspector is, final Class<?> clazz, String property, Object arg) Discovers the method for a The method to be found should be named "set{P,p}property.
| |
| execute | back to summary |
|---|---|
| public Object execute(Object o, Object arg) throws IllegalAccessException, InvocationTargetException Implements abstract org. Doc from org. Sets the property value of an object.
| |
| getTargetProperty | back to summary |
|---|---|
| public Object getTargetProperty() Overrides org. Doc from org. Gets the property targeted by this executor. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(Object o, Object identifier, Object arg) Overrides org. Doc from org. Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |