org.planx.xmlstore.nodes
Interface LocatorListener


public interface LocatorListener

Author:
Thomas Ambus

Method Summary
 LocalLocator locatorLoaded(LocalLocator target, LocalLocator parent, int childIndex)
          Informs that a LocalLocator has been loaded.
 SystemNode lookup(LocalLocator loc)
          Requests a lookup of a Node with the specified LocalLocator.
 void nodeLoaded(LocalLocator loc, SystemNode node, boolean hasOutgoing)
          Informs that a Node with the specified LocalLocator has been loaded.
 void nodeSaved(LocalLocator loc, SystemNode node, boolean hasOutgoing)
          Informs that a Node with the specified LocalLocator has been saved.
 

Method Detail

locatorLoaded

LocalLocator locatorLoaded(LocalLocator target,
                           LocalLocator parent,
                           int childIndex)
Informs that a LocalLocator has been loaded. Since the FileSystemIdentifier might not have been persisted it may be wrong, so this is an opportunity for a listener to correct it to the correct fsi.


nodeLoaded

void nodeLoaded(LocalLocator loc,
                SystemNode node,
                boolean hasOutgoing)
Informs that a Node with the specified LocalLocator has been loaded.


nodeSaved

void nodeSaved(LocalLocator loc,
               SystemNode node,
               boolean hasOutgoing)
Informs that a Node with the specified LocalLocator has been saved.


lookup

SystemNode lookup(LocalLocator loc)
Requests a lookup of a Node with the specified LocalLocator. Can return null to indicate that it is unknown, in which case the Node will just be loaded.



Copyright © 2010. All Rights Reserved.