cz.cuni.amis.introspection.java
Class JavaProperty

Package class diagram package JavaProperty
java.lang.Object
  extended by cz.cuni.amis.introspection.Feature
      extended by cz.cuni.amis.introspection.Property
          extended by cz.cuni.amis.introspection.java.JavaProperty

public class JavaProperty
extends Property

Wrapps JavaReflection way of manipulating with fields of objects.

Author:
ik

Field Summary
protected  Field field
          Field to be changed.
protected  Object object
          Object where is the field.
 
Fields inherited from class cz.cuni.amis.introspection.Feature
name
 
Constructor Summary
JavaProperty(Object object, Field field)
          Creates a new instance of JavaProperty
 
Method Summary
 Class getType()
           
 Object getValue()
          Get value of property.
 void setValue(Object newValue)
          Set value of property.
 
Methods inherited from class cz.cuni.amis.introspection.Feature
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected Field field
Field to be changed.


object

protected Object object
Object where is the field.

Constructor Detail

JavaProperty

public JavaProperty(Object object,
                    Field field)
Creates a new instance of JavaProperty

Parameters:
field - Field that is represented by this property
object - Object at which the new value will be set.
Method Detail

getValue

public Object getValue()
                throws IntrospectionException
Description copied from class: Property
Get value of property.

Specified by:
getValue in class Property
Returns:
Value of property
Throws:
IntrospectionException

setValue

public void setValue(Object newValue)
              throws IntrospectionException
Description copied from class: Property
Set value of property.

Specified by:
setValue in class Property
Throws:
IntrospectionException

getType

public Class getType()
Specified by:
getType in class Property
Returns:
Type of this property.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.