public class IncrementalDocumentEditor extends ObservableDocumentEditor implements Editor
Modifier and Type | Class and Description |
---|---|
protected static class |
IncrementalDocumentEditor.DocumentChanges |
Editor.Observer
Document.Field, Document.ValueTransformer
factory
Constructor and Description |
---|
IncrementalDocumentEditor(MutableDocument document,
List<Operation> operations) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Changes changes)
After making changes to another document, apply the same changes to this document.
|
void |
apply(Changes changes,
Editor.Observer observer)
After making changes to another document, apply the same changes to this document.
|
Changes |
getChanges()
Get the changes that have been made to this document.
|
copy, createEditableArray, createEditableDocument, doSetAllValues, doSetAllValues, doSetValue, doSetValueIfAbsent, remove, removeAll
asMutableDocument, clone, containsAll, containsField, editable, editable, equals, fields, get, getArray, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDocument, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getOrCreateArray, getOrCreateDocument, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, hashCode, isEmpty, isNull, isNullOrMissing, keySet, merge, put, putAll, putAll, set, setArray, setArray, setArray, setBinary, setBoolean, setCode, setCode, setDate, setDate, setDocument, setDocument, setNull, setNumber, setNumber, setNumber, setNumber, setObjectId, setObjectId, setObjectId, setRegularExpression, setRegularExpression, setString, setSymbol, setTimestamp, setUuid, size, toMap, toString, unwrap, with, with, with, withVariablesReplaced, withVariablesReplacedWithSystemProperties
finalize, getClass, notify, notifyAll, wait, wait, wait
asMutableDocument, clone, edit, editable, getArray, getDocument, getOrCreateArray, getOrCreateDocument, merge, putAll, putAll, remove, removeAll, set, setArray, setArray, setArray, setBinary, setBoolean, setCode, setCode, setDate, setDate, setDocument, setDocument, setNull, setNumber, setNumber, setNumber, setNumber, setObjectId, setObjectId, setObjectId, setRegularExpression, setRegularExpression, setString, setSymbol, setTimestamp, setUuid, unwrap
containsAll, containsField, fields, get, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, isEmpty, isNull, isNullOrMissing, keySet, size, toMap, with, with, with, withVariablesReplaced, withVariablesReplacedWithSystemProperties
public IncrementalDocumentEditor(MutableDocument document, List<Operation> operations)
public Changes getChanges()
Editor
getChanges
in interface Editor
public void apply(Changes changes)
Editor
apply
in interface Editor
changes
- the changes that are to be applied to this document; may not be nullEditor.apply(Changes, Observer)
public void apply(Changes changes, Editor.Observer observer)
Editor
apply
in interface Editor
changes
- the changes that are to be applied to this document; may not be nullobserver
- an observer that will be called as changes are undone; may be nullEditor.apply(Changes)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.