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

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

public class CustomProperty
extends Property<MetaProperty>

Custom property - contains the value of the property.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
CustomProperty(MetaProperty metaProperty)
          Creates new custom property.
CustomProperty(MetaProperty metaProperty, Object value)
          Creates new custom property with initialized value.
 
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

CustomProperty

public CustomProperty(MetaProperty metaProperty)
Creates new custom property.

Parameters:
metaProperty - MetaProperty which describes this property

CustomProperty

public CustomProperty(MetaProperty metaProperty,
                      Object value)
Creates new custom property with initialized value.

Parameters:
metaProperty - MetaProperty which describes this property
value - initial value
Method Detail

getValue

public Object getValue()
Returns property value.

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


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