org.modeshape.jcr.cache.change

## Class NodeMoved

- java.lang.Object
- - org.modeshape.jcr.cache.change.Change
  - - org.modeshape.jcr.cache.change.AbstractNodeChange
    - - org.modeshape.jcr.cache.change.NodeMoved

- All Implemented Interfaces:
    Serializable

      public class NodeMoved
      extends AbstractNodeChange

  Change representing the moving of a node.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class org.modeshape.jcr.cache.change.AbstractNodeChange

      `path`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NodeMoved(NodeKey key, Name primaryType, Set<Name> mixinTypes, NodeKey oldParent, NodeKey newParent, Path newPath, Path oldPath, boolean queryable)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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, getMixinTypes, getPath, getPrimaryType, isQueryable, isType`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NodeMoved

          public NodeMoved(NodeKey key,
                   Name primaryType,
                   Set<Name> mixinTypes,
                   NodeKey oldParent,
                   NodeKey newParent,
                   Path newPath,
                   Path oldPath,
                   boolean queryable)

  - ### 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`

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