ModeShape Distribution 3.0.0.Beta4

org.modeshape.jcr.cache.change
Class NodeMoved

java.lang.Object
  extended by org.modeshape.jcr.cache.change.Change
      extended by org.modeshape.jcr.cache.change.AbstractNodeChange
          extended by org.modeshape.jcr.cache.change.NodeMoved
All Implemented Interfaces:
Serializable

public class NodeMoved
extends AbstractNodeChange

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.modeshape.jcr.cache.change.AbstractNodeChange
path
 
Constructor Summary
NodeMoved(NodeKey key, NodeKey oldParent, NodeKey newParent, Path newPath, Path oldPath)
           
 
Method Summary
 NodeKey getNewParent()
          Get the parent under which the node now appears.
 Path getNewPath()
          Get the new path for the node, if it is known
 NodeKey getOldParent()
          Get the parent under which the node formerly appeared.
 Path getOldPath()
          Get the old path for the node, if it is known
 String toString()
           
 
Methods inherited from class org.modeshape.jcr.cache.change.AbstractNodeChange
getKey, getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeMoved

public NodeMoved(NodeKey key,
                 NodeKey oldParent,
                 NodeKey newParent,
                 Path newPath,
                 Path oldPath)
Method Detail

getNewParent

public NodeKey getNewParent()
Get the parent under which the node now appears.

Returns:
the new parent; never null

getOldParent

public NodeKey getOldParent()
Get the parent under which the node formerly appeared.

Returns:
the old parent; never null

getNewPath

public Path getNewPath()
Get the new path for the node, if it is known

Returns:
the new path; may be null if it is not known

getOldPath

public Path getOldPath()
Get the old path for the node, if it is known

Returns:
the old path; may be null if it is not known

toString

public String toString()
Overrides:
toString in class Object

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.