ModeShape Distribution 3.1.0.Final

org.modeshape.jcr.cache.document
Class SessionNode.NodeChanges

java.lang.Object
  extended by org.modeshape.jcr.cache.document.SessionNode.NodeChanges
Enclosing class:
SessionNode

public class SessionNode.NodeChanges
extends Object

Value object which contains an "abbreviated" view of the changes that this session node has registered in its internal state.


Method Summary
 Set<Name> addedMixins()
          Returns a set with the names of the mixins that have been added.
 Set<NodeKey> addedParents()
          Returns the set of parents that have been added
 Set<NodeKey> addedStrongReferrers()
          Returns a set of node keys with the strong referrers that have been added.
 Set<NodeKey> addedWeakReferrers()
          Returns a set of node keys with the weak referrers that have been added.
 LinkedHashMap<NodeKey,Name> appendedChildren()
          Returns the [childKey, childName] pairs of the children that have been appended (at the end).
 Set<Name> changedPropertyNames()
          Returns a set with the names of the properties that have changed.
 Map<NodeKey,LinkedHashMap<NodeKey,Name>> childrenInsertedBefore()
          Returns the [insertBeforeChildKey, [childKey, childName]] structure of the children that been inserted before another existing child.
 NodeKey newPrimaryParent()
          Returns the node key of the new primary parent, in case it has changed.
 Set<NodeKey> removedChildren()
          Returns the set of children that have been removed
 Set<Name> removedMixins()
          Returns a set with the names of the mixins that have been removed.
 Set<NodeKey> removedParents()
          Returns the set of parents that have been removed
 Set<Name> removedPropertyNames()
          Returns a set with the names of the properties that have been removed.
 Set<NodeKey> removedStrongReferrers()
          Returns a set of node keys with the strong referrers that have been removed.
 Set<NodeKey> removedWeakReferrers()
          Returns a set of node keys with the weak referrers that have been removed.
 Map<NodeKey,Name> renamedChildren()
          Returns the [childKey, childName] pairs of the children that have been renamed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

changedPropertyNames

public Set<Name> changedPropertyNames()
Returns a set with the names of the properties that have changed. This includes new/modified properties.

Returns:
a non-null Set

removedPropertyNames

public Set<Name> removedPropertyNames()
Returns a set with the names of the properties that have been removed.

Returns:
a non-null Set

addedMixins

public Set<Name> addedMixins()
Returns a set with the names of the mixins that have been added.

Returns:
a non-null Set

removedMixins

public Set<Name> removedMixins()
Returns a set with the names of the mixins that have been removed.

Returns:
a non-null Set

appendedChildren

public LinkedHashMap<NodeKey,Name> appendedChildren()
Returns the [childKey, childName] pairs of the children that have been appended (at the end).

Returns:
a non-null Map

removedChildren

public Set<NodeKey> removedChildren()
Returns the set of children that have been removed

Returns:
a non-null Set

renamedChildren

public Map<NodeKey,Name> renamedChildren()
Returns the [childKey, childName] pairs of the children that have been renamed.

Returns:
a non-null Map

childrenInsertedBefore

public Map<NodeKey,LinkedHashMap<NodeKey,Name>> childrenInsertedBefore()
Returns the [insertBeforeChildKey, [childKey, childName]] structure of the children that been inserted before another existing child. This is normally caused due to reorderings

Returns:
a non-null Map

addedParents

public Set<NodeKey> addedParents()
Returns the set of parents that have been added

Returns:
a non-null Set

removedParents

public Set<NodeKey> removedParents()
Returns the set of parents that have been removed

Returns:
a non-null Set

newPrimaryParent

public NodeKey newPrimaryParent()
Returns the node key of the new primary parent, in case it has changed.

Returns:
either the NodeKey of the new primary parent or null

addedWeakReferrers

public Set<NodeKey> addedWeakReferrers()
Returns a set of node keys with the weak referrers that have been added.

Returns:
a non-null Set

removedWeakReferrers

public Set<NodeKey> removedWeakReferrers()
Returns a set of node keys with the weak referrers that have been removed.

Returns:
a non-null Set

addedStrongReferrers

public Set<NodeKey> addedStrongReferrers()
Returns a set of node keys with the strong referrers that have been added.

Returns:
a non-null Set

removedStrongReferrers

public Set<NodeKey> removedStrongReferrers()
Returns a set of node keys with the strong referrers that have been removed.

Returns:
a non-null Set

ModeShape Distribution 3.1.0.Final

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