|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.introspection.AbstractProperty
nl.tudelft.simulation.introspection.fields.FieldProperty
The field implementation of the Property interface. See for details.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Constructor Summary | |
FieldProperty(java.lang.Object owner,
java.lang.reflect.Field descriptor)
constructs a new FieldProperty |
|
FieldProperty(java.lang.Object owner,
java.lang.reflect.Field descriptor,
boolean editable)
constructs a new FieldProperty |
|
| Method Summary | |
java.lang.Object |
getInstance()
Retrieves the introspected object, which contains this Property. |
java.lang.String |
getName()
Retrieves the name of the property. |
java.lang.Class |
getType()
Returns the type of this property's value. |
java.lang.Object |
getValue()
Returns the current value of this property. |
boolean |
isEditable()
Returns whether the value of this property may be altered. |
void |
setRegularValue(java.lang.Object value)
Method used to set a regular (i.e. |
| Methods inherited from class nl.tudelft.simulation.introspection.AbstractProperty |
getComponentType, isCollection, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.tudelft.simulation.introspection.Property |
getComponentType, isCollection, setValue |
| Constructor Detail |
public FieldProperty(java.lang.Object owner,
java.lang.reflect.Field descriptor,
boolean editable)
owner - its ownerdescriptor - the descriptoreditable - is the property editable
public FieldProperty(java.lang.Object owner,
java.lang.reflect.Field descriptor)
owner - its ownerdescriptor - the descriptor| Method Detail |
public java.lang.String getName()
Property
getName in interface PropertyProperty.getName()public java.lang.Class getType()
Property
getType in interface PropertyProperty.getType()public void setRegularValue(java.lang.Object value)
AbstractProperty
setRegularValue in class AbstractPropertyvalue - the new value#setRegularValue(java.lang.Object)public java.lang.Object getValue()
Property
getValue in interface PropertyProperty.getValue()public java.lang.Object getInstance()
Property
getInstance in interface PropertyProperty.getInstance()public boolean isEditable()
Property
isEditable in interface PropertyProperty.isEditable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||