de.xabsl.jxabslx.io
Class OutputToSetterMethod

java.lang.Object
  extended by de.xabsl.jxabslx.io.MethodAccess
      extended by de.xabsl.jxabslx.io.OutputToSetterMethod
All Implemented Interfaces:
Output

public class OutputToSetterMethod
extends MethodAccess
implements Output

Writes a value by invoking a setter method, i.e. a method with one parameter which is the value


Field Summary
 
Fields inherited from class de.xabsl.jxabslx.io.MethodAccess
container, method
 
Constructor Summary
OutputToSetterMethod(java.lang.reflect.Method method, java.lang.Object container)
           
 
Method Summary
protected  void checkParameter()
          Check if the function has exactly one parameter.
 void setValue(java.lang.Object value)
           
 
Methods inherited from class de.xabsl.jxabslx.io.MethodAccess
checkAccess, checkContainer, generateIllegalArgumentException, generateInvocationTagetException, generateMethodInaccessibleException, getMethod, invokeMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputToSetterMethod

public OutputToSetterMethod(java.lang.reflect.Method method,
                            java.lang.Object container)
Method Detail

checkParameter

protected void checkParameter()
Check if the function has exactly one parameter.


setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface Output