org.sonatype.gshell.util.setter
Class FieldSetter

java.lang.Object
  extended by org.sonatype.gshell.util.setter.SetterSupport
      extended by org.sonatype.gshell.util.setter.FieldSetter
All Implemented Interfaces:
Setter
Direct Known Subclasses:
CollectionFieldSetter

public class FieldSetter
extends SetterSupport

Setter for fields.

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
protected  Field field
           
 
Fields inherited from class org.sonatype.gshell.util.setter.SetterSupport
log
 
Constructor Summary
FieldSetter(Field field, 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
 

Field Detail

field

protected final Field field
Constructor Detail

FieldSetter

public FieldSetter(Field field,
                   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.