org.sonatype.gshell.util.setter
Class MethodSetter

java.lang.Object
  extended by org.sonatype.gshell.util.setter.SetterSupport
      extended by org.sonatype.gshell.util.setter.MethodSetter
All Implemented Interfaces:
Setter

public class MethodSetter
extends SetterSupport

Setter for methods.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from class org.sonatype.gshell.util.setter.SetterSupport
SetterSupport.Messages
 
Field Summary
 
Fields inherited from class org.sonatype.gshell.util.setter.SetterSupport
log
 
Constructor Summary
MethodSetter(Method method, Object bean)
           
 
Method Summary
protected  void doSet(Object value)
           
 String getName()
           
 Class getType()
           
 boolean isMultiValued()
          Whether this setter is intrinsically multi-valued.
 
Methods inherited from class org.sonatype.gshell.util.setter.SetterSupport
getAccessible, getBean, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodSetter

public MethodSetter(Method method,
                    Object bean)
Method Detail

getName

public String getName()

getType

public Class getType()

isMultiValued

public boolean isMultiValued()
Description copied from interface: Setter
Whether this setter is intrinsically multi-valued.


doSet

protected void doSet(Object value)
              throws IllegalAccessException
Specified by:
doSet in class SetterSupport
Throws:
IllegalAccessException


Copyright © 2008-2011 Sonatype. All Rights Reserved.