public static interface ChildReferences.Changes
Modifier and Type | Method and Description |
---|---|
ChildReference |
inserted(NodeKey key)
Get the child reference for the inserted node with the supplied key.
|
int |
insertionCount()
Get the number of child references that were inserted.
|
int |
insertionCount(Name name)
Get the number of child references that were inserted with the given name.
|
Iterator<ChildReferences.ChildInsertions> |
insertions(Name name)
Get the references to the children with the supplied name that were inserted.
|
ChildReferences.ChildInsertions |
insertionsBefore(ChildReference key)
Get the set of child references that were inserted before the node with the supplied key.
|
boolean |
isEmpty()
Determine if this set of changes is empty.
|
boolean |
isRemoved(ChildReference ref)
Determine whether the supplied child reference was removed.
|
boolean |
isRenamed(ChildReference ref)
Determine whether the supplied child reference was renamed.
|
boolean |
isRenamed(Name newName)
Determine whether any of the child references were renamed to the supplied name.
|
int |
removalCount()
Get the number of child references that were removed.
|
int |
renameCount()
Get the number of child references that were renamed.
|
Name |
renamed(NodeKey key)
Return the new name for the child node with the supplied key.
|
Iterator<ChildReferences.ChildInsertions> insertions(Name name)
name
- the name; may not be nullnull
if there are no insertions with this nameChildReference inserted(NodeKey key)
key
- the node key for the inserted node; may not be nullChildReferences.ChildInsertions insertionsBefore(ChildReference key)
key
- the node key for the node before which the inserted nodes are to be returned; may not be nullnull
if there are no insertions
before the given key.boolean isRemoved(ChildReference ref)
ref
- the reference; may not be nullboolean isRenamed(ChildReference ref)
ref
- the reference; may not be nullboolean isRenamed(Name newName)
newName
- the new name; may not be nullName renamed(NodeKey key)
key
- the child node's key; may not be nullboolean isEmpty()
int removalCount()
int insertionCount()
int insertionCount(Name name)
name
- the Name
of a child, never null
int renameCount()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.