cz.cuni.amis.introspection
Class Property
java.lang.Object
cz.cuni.amis.introspection.Feature
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
| Fields inherited from class cz.cuni.amis.introspection.Feature |
name |
| 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 |
Property
public Property(String name)
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.