1 package uk.ac.vamsas.client;
\r
4 * Methods implemented by a Vamsas Application's Object Update handler
\r
6 * Introduced November 2006 Vamsas Meeting
\r
7 * TODO: verify this is sufficient for the per-object update event mechanism
\r
9 public interface IObjectUpdate {
\r
11 * Called by the library to find out which vamsas document object this update handler is interested in
\r
12 * @return class that extends org.vamsas.Vobject
\r
14 Class getRootVobject();
\r
16 * Called to test if this handler is to be called for updates to any Vobjects below the Root Vobject in the vamsas document.
\r
17 * @return false means IObjectUpdate.update(updated, cdoc) will only be called with instances of type getRootVobject().
\r
19 boolean handlesSubtreeUpdates();
\r
21 * Method called by Vamsas Client Library for all updated objects that the handler is registered for.
\r
25 void update(uk.ac.vamsas.client.Vobject updated, uk.ac.vamsas.client.IClientDocument cdoc);
\r