org.apache.jackrabbit.mk.model
Class TraversingNodeDiffHandler

java.lang.Object
  extended by org.apache.jackrabbit.mk.model.NodeStateDiff
      extended by org.apache.jackrabbit.mk.model.TraversingNodeDiffHandler

public abstract class TraversingNodeDiffHandler
extends NodeStateDiff


Field Summary
protected  Stack<String> paths
           
 
Constructor Summary
TraversingNodeDiffHandler()
           
 
Method Summary
 void childNodeChanged(String name, NodeState before, NodeState after)
          Called by NodeStateDiff.compare(NodeState, NodeState) for all changed child nodes.
protected  String getCurrentPath()
           
 void start(NodeState before, NodeState after)
           
 void start(NodeState before, NodeState after, String path)
           
 
Methods inherited from class org.apache.jackrabbit.mk.model.NodeStateDiff
childNodeAdded, childNodeDeleted, compare, propertyAdded, propertyChanged, propertyDeleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paths

protected Stack<String> paths
Constructor Detail

TraversingNodeDiffHandler

public TraversingNodeDiffHandler()
Method Detail

start

public void start(NodeState before,
                  NodeState after)

start

public void start(NodeState before,
                  NodeState after,
                  String path)

getCurrentPath

protected String getCurrentPath()

childNodeChanged

public void childNodeChanged(String name,
                             NodeState before,
                             NodeState after)
Description copied from class: NodeStateDiff
Called by NodeStateDiff.compare(NodeState, NodeState) for all changed child nodes. The default implementation does nothing.

Overrides:
childNodeChanged in class NodeStateDiff
Parameters:
name - name of the changed child node
before - child node state before the change
after - child node state after the change


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.