jTransfo, 0.10

org.jtransfo.internal
Class SimpleSyntheticField

java.lang.Object
  extended by org.jtransfo.internal.SimpleSyntheticField
All Implemented Interfaces:
SyntheticField

public class SimpleSyntheticField
extends Object
implements SyntheticField

Simple synthetic field which just exposes the field itself.


Constructor Summary
SimpleSyntheticField(Field field)
          Constructor.
 
Method Summary
 Object get(Object object)
          Get field value.
 String getName()
          Get field name.
 Class<?> getType()
          Get field type.
 void set(Object object, Object value)
          Set field value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSyntheticField

public SimpleSyntheticField(Field field)
Constructor.

Parameters:
field - field (may be in a parent class of clazz)
Method Detail

get

public Object get(Object object)
           throws IllegalAccessException,
                  IllegalArgumentException
Description copied from interface: SyntheticField
Get field value.

Specified by:
get in interface SyntheticField
Parameters:
object - object which contains the field.
Returns:
field value
Throws:
IllegalAccessException - illegal access
IllegalArgumentException - illegal argument

set

public void set(Object object,
                Object value)
         throws IllegalAccessException,
                IllegalArgumentException
Description copied from interface: SyntheticField
Set field value.

Specified by:
set in interface SyntheticField
Parameters:
object - object which contains the field.
value - field value
Throws:
IllegalAccessException - illegal access
IllegalArgumentException - illegal argument

getName

public String getName()
Description copied from interface: SyntheticField
Get field name.

Specified by:
getName in interface SyntheticField
Returns:
field name

getType

public Class<?> getType()
Description copied from interface: SyntheticField
Get field type.

Specified by:
getType in interface SyntheticField
Returns:
field type

jTransfo, 0.10

Copyright © 2013. All rights reserved.