|
|||||||||||
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 IAttribute
public IAttributeInfo getInfo()
getInfo
in interface IAttribute
public void setValue(java.lang.Object value)
setValue
in interface IEditableAttribute
java.lang.IllegalArgumentException
- thrown if the value argument is
invalid.public boolean hasValueChanged()
hasValueChanged
in interface IEditableAttribute
public 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 |