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

java.lang.Object
  extended by org.apache.geronimo.gshell.clp.setter.MethodSetter
All Implemented Interfaces:
Setter

public class MethodSetter
extends Object
implements Setter

Setter for methods.

Version:
$Rev: 570606 $ $Date: 2007-08-28 19:17:11 -0700 (Tue, 28 Aug 2007) $

Constructor Summary
MethodSetter(Object bean, Method method)
           
 
Method Summary
 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
 

Constructor Detail

MethodSetter

public MethodSetter(Object bean,
                    Method method)
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)
         throws ProcessingException
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
Throws:
ProcessingException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.