public interface Variable
A Variable
is an object that holds a single value, its state, and
which allows VariableObserver
to be attached and observe changes to
the variable.
Variables also supports validation for checking for acceptable values.
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer cl) |
java.lang.Object |
clone()
creates a shallow clone of this
Variable . |
void |
fireChangeEvent() |
java.lang.Object |
getValue() |
void |
removeObserver(Observer cl) |
void |
setValue(java.lang.Object x) |
void |
validate(java.lang.Object value) |
java.lang.Object clone()
Variable
.void setValue(java.lang.Object x)
java.lang.Object getValue()
void validate(java.lang.Object value)
void addObserver(Observer cl)
void removeObserver(Observer cl)
void fireChangeEvent()