Some examples for customizing generated Java sources.
This is an example of a class that is being customized.
The class shall implement the interface "Observer".
Whenever the Observable receives an Integer object,
it shall be added to the list "ObservedNumbers".
Besides the interface declaration, we need to
specify a method update().
public void update(java.util.Observable o, Object arg) {
if (arg instanceof Integer) {
if (eObservedNumbers == null) {
eObservedNumbers = new java.util.ArrayList();
}
eObservedNumbers.add(arg);
}
}