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

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

public class TransientProperty
extends Property<MetaTransientProperty>

Transient property - accesses value from data element via getter method defined in it's MetaTransientProperty.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
TransientProperty(MetaTransientProperty 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

TransientProperty

public TransientProperty(MetaTransientProperty metaProperty,
                         Object element)
Creates new transient property.

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

getValue

public Object getValue()
Returns property value.

Specified by:
getValue in class Property<MetaTransientProperty>
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<MetaTransientProperty>
Parameters:
value - value to set
See Also:
Property.setValue(java.lang.Object)


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