protected static class Schematic.EditorImpl extends ObservableDocumentEditor implements Editor
Editor.Observer
Document.Field, Document.ValueTransformer
factory
Constructor and Description |
---|
Schematic.EditorImpl(MutableDocument document,
DocumentObserver observer,
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, 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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
clone, 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 Schematic.EditorImpl(MutableDocument document, DocumentObserver observer, 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-2013 JBoss, a division of Red Hat. All Rights Reserved.