public class KernelNodeBuilder extends MemoryNodeBuilder implements FastMove
KernelRootBuilder
Modifier and Type | Method and Description |
---|---|
NodeState |
getBaseState()
Returns the original base state that this builder is modifying.
|
boolean |
moveFrom(KernelNodeBuilder source,
String newName)
Move the
source builder to this builder with the
given new name |
boolean |
moveTo(NodeBuilder newParent,
String newName)
If
newParent is a KernelNodeBuilder this implementation
purges all pending changes before applying the move operation. |
void |
reset(NodeState newBase)
Throws away all changes in this builder and resets the base to the
given node state.
|
child, createBlob, exists, getBoolean, getChildNode, getChildNodeCount, getChildNodeNames, getName, getNames, getNodeState, getPath, getProperties, getProperty, getPropertyCount, getString, hasChildNode, hasProperty, isModified, isNew, isNew, isReplaced, isReplaced, remove, removeProperty, setChildNode, setChildNode, setProperty, setProperty, setProperty, toString
public NodeState getBaseState()
NodeBuilder
exists
method
returns false
) if this builder represents a new node that
didn't exist in the base content tree.getBaseState
in interface NodeBuilder
getBaseState
in class MemoryNodeBuilder
public void reset(NodeState newBase)
MemoryNodeBuilder
reset
in class MemoryNodeBuilder
newBase
- new base statepublic boolean moveTo(NodeBuilder newParent, String newName)
newParent
is a KernelNodeBuilder
this implementation
purges all pending changes before applying the move operation. This allows the
underlying store to better optimise move operations instead of just seeing
them as an added and a removed node.
If newParent
is not a KernelNodeBuilder
the implementation
falls back to the super class.moveTo
in interface NodeBuilder
moveTo
in class MemoryNodeBuilder
newParent
- builder for the new parent.newName
- name of this child at the new parenttrue
on success, false
otherwisepublic boolean moveFrom(KernelNodeBuilder source, String newName)
FastMove
source
builder to this builder with the
given new name"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"