public static interface Editor.Observer
Editor.apply(Changes,Observer)
and Editor.apply(Changes, Observer)
methods to receive notifications of the changes that were applied or undone.Modifier and Type | Method and Description |
---|---|
void |
addArrayValue(Path path,
Array.Entry entry)
Insert the entry into the array at the given path.
|
void |
clear(Path path)
Remove all fields from the document at the supplied path.
|
void |
put(Path parentPath,
String field,
Object newValue)
Set to the given value the field in the document at the supplied path.
|
void |
remove(Path parentPath,
String field)
Remove the field from the document at the supplied path.
|
void |
removeArrayValue(Path path,
Array.Entry entry)
Remove the entry from the array at the given path.
|
void |
setArrayValue(Path path,
Array.Entry entry)
Set the supplied entry in the array at the given path.
|
void setArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid addArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid removeArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid clear(Path path)
path
- the path to the documentvoid put(Path parentPath, String field, Object newValue)
parentPath
- the path to the parent document in which the field should be updatedfield
- the name of the field to be updatednewValue
- the new valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.