pl.edu.agh.cast.data.model.property
Class PermanentProperty

java.lang.Object
  extended by pl.edu.agh.cast.data.model.property.Property<MetaPermanentProperty>
      extended by pl.edu.agh.cast.data.model.property.PermanentProperty
All Implemented Interfaces:
Serializable

public class PermanentProperty
extends Property<MetaPermanentProperty>

Permanent property - accesses value from data element via getter and setter method defined in it's MetaPermanentProperty.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
PermanentProperty(MetaPermanentProperty metaProperty, Object element)
          Creates new transient property.
 
Method Summary
 Object getValue()
          Returns property value.
 void setValue(Object value)
          Sets property value.
 
Methods inherited from class pl.edu.agh.cast.data.model.property.Property
equals, getMetaProperty, hashCode, isValidValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermanentProperty

public PermanentProperty(MetaPermanentProperty metaProperty,
                         Object element)
Creates new transient property.

Parameters:
metaProperty - MetaPermanentProperty which describes this property
element - object containing property value
Method Detail

getValue

public Object getValue()
Returns property value.

Specified by:
getValue in class Property<MetaPermanentProperty>
Returns:
the value of the property
See Also:
Property.getValue()

setValue

public void setValue(Object value)
Sets property value.

Specified by:
setValue in class Property<MetaPermanentProperty>
Parameters:
value - value to set
See Also:
Property.setValue(java.lang.Object)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.