cz.cuni.amis.introspection
Class Property

Package class diagram package Property
java.lang.Object
  extended by cz.cuni.amis.introspection.Feature
      extended by cz.cuni.amis.introspection.Property
Direct Known Subclasses:
AttributeToPropertyAdapter, JavaProperty, PropertyShadow, PythonProperty

public abstract class Property
extends Feature

Interface for property models. Porperty model can get and set values directly from (and to) running instance of code.

Author:
student

Field Summary
 
Fields inherited from class cz.cuni.amis.introspection.Feature
name
 
Constructor Summary
Property(String name)
           
 
Method Summary
abstract  Class getType()
           
abstract  Object getValue()
          Get value of property.
abstract  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
 

Constructor Detail

Property

public Property(String name)
Method Detail

getValue

public abstract Object getValue()
                         throws IntrospectionException
Get value of property.

Returns:
Value of property
Throws:
IllegalAccessException
IntrospectionException

setValue

public abstract void setValue(Object newValue)
                       throws IntrospectionException
Set value of property.

Parameters:
newValue -
Throws:
IllegalAccessException
IntrospectionException

getType

public abstract Class getType()
                       throws IntrospectionException
Returns:
Type of this property.
Throws:
IntrospectionException


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