org.geotools.catalog
Interface ResolveDeltaVisitor


public interface ResolveDeltaVisitor

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(ResolveDelta delta)
          Visits the given resolve delta.
 

Method Detail

visit

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

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


Copyright © GeoTools. All Rights Reserved.