public class OrderedPropertyIndexEditor extends Object
Constructor and Description |
---|
OrderedPropertyIndexEditor(NodeBuilder definition,
NodeState root,
IndexUpdateCallback callback) |
Modifier and Type | Method and Description |
---|---|
Editor |
childNodeAdded(String name,
NodeState after)
Processes an added child node.
|
Editor |
childNodeChanged(String name,
NodeState before,
NodeState after)
Processes a changed child node.
|
Editor |
childNodeDeleted(String name,
NodeState before)
Processes a deleted child node.
|
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
OrderedIndex.OrderDirection |
getDirection() |
boolean |
isProperlyConfigured() |
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
propertyAdded(PropertyState after)
Processes an added property.
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Processes a changed property.
|
void |
propertyDeleted(PropertyState before)
Processes a removed property.
|
public OrderedPropertyIndexEditor(NodeBuilder definition, NodeState root, IndexUpdateCallback callback)
public boolean isProperlyConfigured()
public OrderedIndex.OrderDirection getDirection()
public void enter(NodeState before, NodeState after)
Editor
public void leave(NodeState before, NodeState after) throws CommitFailedException
Editor
leave
in interface Editor
before
- before state, non-existent if this node was addedafter
- after state, non-existent if this node was removedCommitFailedException
- if this commit should be rejectedpublic void propertyAdded(PropertyState after)
Editor
propertyAdded
in interface Editor
after
- the added propertypublic void propertyChanged(PropertyState before, PropertyState after)
Editor
propertyChanged
in interface Editor
before
- the original propertyafter
- the changed propertypublic void propertyDeleted(PropertyState before)
Editor
propertyDeleted
in interface Editor
before
- the removed propertypublic Editor childNodeAdded(String name, NodeState after)
Editor
childNodeAdded
in interface Editor
name
- name of the added nodeafter
- the added child nodenull
if the subtree does not need processingpublic Editor childNodeChanged(String name, NodeState before, NodeState after)
Editor
childNodeChanged
in interface Editor
name
- name of the changed nodebefore
- child node before the changeafter
- child node after the changenull
if the subtree does not need processingpublic Editor childNodeDeleted(String name, NodeState before)
Editor
childNodeDeleted
in interface Editor
name
- name of the deleted nodebefore
- the deleted child nodenull
if the subtree does not need processing"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"