org.apache.geronimo.gshell.clp.setter
Class FieldSetter

java.lang.Object
  extended by 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) $

Field Summary
protected  Object bean
           
protected  Field field
           
 
Constructor Summary
FieldSetter(Object bean, Field field)
           
 
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 Detail

field

protected final Field field

bean

protected final Object bean
Constructor Detail

FieldSetter

public FieldSetter(Object bean,
                   Field field)
Method Detail

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.