de.xabsl.jxabslx.io
Class InputFromField

java.lang.Object
  extended by de.xabsl.jxabslx.io.FieldAccess
      extended by de.xabsl.jxabslx.io.InputFromField
All Implemented Interfaces:
Input

public class InputFromField
extends FieldAccess
implements Input

Reads a value from a java field.


Field Summary
 
Fields inherited from class de.xabsl.jxabslx.io.FieldAccess
container, field
 
Constructor Summary
InputFromField(java.lang.reflect.Field field, java.lang.Object container)
           
 
Method Summary
 java.lang.Object[] getParameters()
          An array to which parameters will be written to prior to getValue()
 java.lang.Class<?>[] getParamTypes()
          The parameter types as java classes in the correct order
 java.lang.Object getValue()
          Returns the value.
 
Methods inherited from class de.xabsl.jxabslx.io.FieldAccess
checkAccess, checkContainer, generateFieldInaccessibleException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFromField

public InputFromField(java.lang.reflect.Field field,
                      java.lang.Object container)
Method Detail

getParameters

public java.lang.Object[] getParameters()
Description copied from interface: Input
An array to which parameters will be written to prior to getValue()

Specified by:
getParameters in interface Input

getParamTypes

public java.lang.Class<?>[] getParamTypes()
Description copied from interface: Input
The parameter types as java classes in the correct order

Specified by:
getParamTypes in interface Input

getValue

public java.lang.Object getValue()
Description copied from interface: Input
Returns the value. Set parameters before calling this function

Specified by:
getValue in interface Input