org.apache.jackrabbit.core.state
Interface NodeStateListener

All Superinterfaces:
ItemStateListener
All Known Implementing Classes:
CachingHierarchyManager

public interface NodeStateListener
extends ItemStateListener

Extends the ItemStateListener allowing a client to be additionally informed about changes on a NodeState.

See Also:
NodeState.addListener(org.apache.jackrabbit.core.state.ItemStateListener)

Method Summary
 void nodeAdded(NodeState state, QName name, int index, NodeId id)
          Called when a child node has been added
 void nodeRemoved(NodeState state, QName name, int index, NodeId id)
          Called when a child node has been removed
 void nodesReplaced(NodeState state)
          Called when the children nodes were replaced by other nodes, typically as result of a reorder operation.
 
Methods inherited from interface org.apache.jackrabbit.core.state.ItemStateListener
stateCreated, stateDestroyed, stateDiscarded, stateModified
 

Method Detail

nodeAdded

public void nodeAdded(NodeState state,
                      QName name,
                      int index,
                      NodeId id)
Called when a child node has been added

Parameters:
state - node state that changed
name - name of node that was added
index - index of new node
id - id of new node

nodesReplaced

public void nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically as result of a reorder operation.

Parameters:
state - node state that changed

nodeRemoved

public void nodeRemoved(NodeState state,
                        QName name,
                        int index,
                        NodeId id)
Called when a child node has been removed

Parameters:
state - node state that changed
name - name of node that was removed
index - index of removed node
id - id of removed node


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.