public class FieldProperty extends AbstractProperty implements Property
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor and Description |
---|
FieldProperty(Object owner,
Field descriptor)
constructs a new FieldProperty
|
FieldProperty(Object owner,
Field descriptor,
boolean editable)
constructs a new FieldProperty
|
Modifier and Type | Method and Description |
---|---|
Object |
getInstance()
Retrieves the introspected object, which contains this Property.
|
String |
getName()
Retrieves the name of the property.
|
Class |
getType()
Returns the type of this property's value.
|
Object |
getValue()
Returns the current value of this property.
|
boolean |
isEditable()
Returns whether the value of this property may be altered.
|
void |
setRegularValue(Object value)
Method used to set a regular (i.e.
|
getComponentType, isCollection, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentType, isCollection, setValue
public FieldProperty(Object owner, Field descriptor, boolean editable)
owner
- its ownerdescriptor
- the descriptoreditable
- is the property editablepublic String getName()
Property
getName
in interface Property
Property.getName()
public Class getType()
Property
getType
in interface Property
Property.getType()
public void setRegularValue(Object value)
AbstractProperty
setRegularValue
in class AbstractProperty
value
- the new value#setRegularValue(java.lang.Object)
public Object getValue()
Property
getValue
in interface Property
Property.getValue()
public Object getInstance()
Property
getInstance
in interface Property
Property.getInstance()
public boolean isEditable()
Property
isEditable
in interface Property
Property.isEditable()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.