uk.ac.vamsas.objects
Class DocumentUpdaterEngine

java.lang.Object
  extended byuk.ac.vamsas.objects.DocumentUpdaterEngine

public class DocumentUpdaterEngine
extends java.lang.Object

Implements a depth first traversal over the document tree calling update handlers based on the Vobject.isUpdated() and Vobject.isNewInDocument() state at each backtrack.

Author:
JimP

Constructor Summary
DocumentUpdaterEngine(IDocumentUpdater handler)
          initialise the engine with an implementation of the interface.
 
Method Summary
 void callHandlers(IClientDocument cdoc)
          call the necessary update handlers at each point on the VamsasDocument OM TODO: later: Make this more elegant (use reflection and factor to single update(Object) method) ? - we take the plodding, explicit approach rather than a funky generalised one here
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentUpdaterEngine

public DocumentUpdaterEngine(IDocumentUpdater handler)
initialise the engine with an implementation of the interface.

Method Detail

callHandlers

public void callHandlers(IClientDocument cdoc)
call the necessary update handlers at each point on the VamsasDocument OM TODO: later: Make this more elegant (use reflection and factor to single update(Object) method) ? - we take the plodding, explicit approach rather than a funky generalised one here