org.apache.geronimo.gshell.clp.setter
Class FieldSetter
java.lang.Object
org.apache.geronimo.gshell.clp.setter.FieldSetter
- All Implemented Interfaces:
- Setter
- Direct Known Subclasses:
- CollectionFieldSetter
public class FieldSetter
- extends Object
- implements Setter
Setter for fields.
- Version:
- $Rev: 570606 $ $Date: 2007-08-28 19:17:11 -0700 (Tue, 28 Aug 2007) $
|
Method Summary |
protected void |
doSet(Object value)
|
Class |
getType()
Gets the type of the underlying method/field. |
boolean |
isMultiValued()
Whether this setter is instrinsically multi-valued. |
void |
set(Object value)
Adds/sets a value to the property of the option bean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
protected final Field field
bean
protected final Object bean
FieldSetter
public FieldSetter(Object bean,
Field field)
getType
public Class getType()
- Description copied from interface:
Setter
- Gets the type of the underlying method/field.
- Specified by:
getType in interface Setter
isMultiValued
public boolean isMultiValued()
- Description copied from interface:
Setter
- Whether this setter is instrinsically multi-valued.
- Specified by:
isMultiValued in interface Setter
set
public void set(Object value)
- Description copied from interface:
Setter
- Adds/sets a value to the property of the option bean.
A Setter object has an implicit knowledge about the property it's setting,
and the instance of the option bean.
- Specified by:
set in interface Setter
doSet
protected void doSet(Object value)
throws IllegalAccessException
- Throws:
IllegalAccessException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.