org.compass.core.accessor
Class DirectPropertyAccessor.DirectSetter

java.lang.Object
  extended by org.compass.core.accessor.DirectPropertyAccessor.DirectSetter
All Implemented Interfaces:
Serializable, Setter
Enclosing class:
DirectPropertyAccessor

public static final class DirectPropertyAccessor.DirectSetter
extends Object
implements Setter

See Also:
Serialized Form

Constructor Summary
DirectPropertyAccessor.DirectSetter(ReflectionField field, Class clazz, String name)
           
 
Method Summary
 Method getMethod()
           
 String getMethodName()
          Optional operation (return null)
 String getName()
          Get the property name
 void set(Object target, Object value)
          Set the property value from the given instance
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectPropertyAccessor.DirectSetter

DirectPropertyAccessor.DirectSetter(ReflectionField field,
                                    Class clazz,
                                    String name)
Method Detail

getName

public String getName()
Description copied from interface: Setter
Get the property name

Specified by:
getName in interface Setter

getMethod

public Method getMethod()

getMethodName

public String getMethodName()
Description copied from interface: Setter
Optional operation (return null)

Specified by:
getMethodName in interface Setter

set

public void set(Object target,
                Object value)
         throws CompassException
Description copied from interface: Setter
Set the property value from the given instance

Specified by:
set in interface Setter
Throws:
CompassException

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2009 The Compass Project.