|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.groboutils.pmti.v1.defimpl.AbstractEditableAttribute
This uses delegation to allow for maximum flexibility in creating new editable attributes based on this class through subclassing.
| Constructor Summary | |
AbstractEditableAttribute(IAttribute base)
|
|
| Method Summary | |
IAttributeInfo |
getInfo()
Returns the meta-information for this attribute. |
java.lang.Object |
getValue()
Returns the current (possibly modified) value for this attribute. |
boolean |
hasValueChanged()
|
abstract boolean |
isValidValue(java.lang.Object value)
Checks if the given value is a valid input value for the setValue( Object ) method. |
void |
setValue(java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractEditableAttribute(IAttribute base)
| Method Detail |
public java.lang.Object getValue()
getValue in interface IAttributepublic IAttributeInfo getInfo()
getInfo in interface IAttributepublic void setValue(java.lang.Object value)
setValue in interface IEditableAttributejava.lang.IllegalArgumentException - thrown if the value argument is
invalid.public boolean hasValueChanged()
hasValueChanged in interface IEditableAttributepublic abstract boolean isValidValue(java.lang.Object value)
IEditableAttribute
isValidValue in interface IEditableAttribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||