An Observer is the corresponding interface to the Observable: The Observer is watching the Observable.
Observable
If the Observable changes its state, it calls the Observers setObservableState() method.
setObservableState()
205206207208209210211212213214
public void endPrefixMapping(String pPrefix) throws SAXException { getData().getNamespaceContext().undeclarePrefix(pPrefix); } public void endDocument() { Observer o = getObserver(); if (o != null) { o.notify(getResult()); } }
173174175176177178179180181182