net.refractions.udig.catalog
Interface IResolveDeltaVisitor

All Known Implementing Classes:
SearchIDDeltaVisitor, SearchResolveDeltaVisitor

public interface IResolveDeltaVisitor

Allows processing of resolve deltas.

Usage:

  class Visitor implements IResolveDeltaVisitor {
      public boolean visit(IResolveDelta delta) {
          switch (delta.getKind()) {
          case IDelta.ADDED :
              // handle added handled
              break;
          case IDelta.REMOVED :
              // handle removed handled
              break;
          case IDelta.CHANGED :
              // handle changed handled
              break;
          case IDelta.REPLACED :
              // handle replaced handled
              break;    
          }
          return true;
      }
  }
  ICatalogDelta rootDelta = ...;
  rootDelta.accept(new Visitor());
 

Clients may implement this interface.

Since:
0.9.0
Author:
Jody Garnett, Refractions Research

Method Summary
 boolean visit(IResolveDelta delta)
          Visits the given resolve delta.
 

Method Detail

visit

boolean visit(IResolveDelta delta)
              throws java.io.IOException
Visits the given resolve delta.

Returns:
true if the resource delta's children should be visited; false if they should be skipped.
Throws:
CoreException - if the visit fails for some reason.
java.io.IOException