|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.model.property.Property<T>
T
- type of {@link MetaProperty) describing the propertypublic abstract class Property<T extends MetaProperty>
Abstract property of IElement
and IDataSet
.
Constructor Summary | |
---|---|
protected |
Property(T metaProperty)
Initializes property with MetaProperty which describes it. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
T |
getMetaProperty()
Returns MetaProperty describing this property. |
abstract Object |
getValue()
Returns property value. |
int |
hashCode()
|
protected boolean |
isValidValue(Object value)
Checks if a value can be assigned to this property. |
abstract void |
setValue(Object value)
Sets property value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Property(T metaProperty)
MetaProperty
which describes it.
metaProperty
- meta-property describing this propertyMethod Detail |
---|
public abstract Object getValue()
public abstract void setValue(Object value)
value
- value to set
PropertyException
- if this property cannot be modified (check MetaProperty.isWritable()
) or if the value type is
invalid for this propertypublic T getMetaProperty()
MetaProperty
describing this property.
protected boolean isValidValue(Object value)
value
- the value object to check
true
if the value can be assigned to this propertypublic boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |