public class ReplaceDocumentCommand extends ReplaceNodeCommand<Document>
_new, _nodePath, _old
Modifier and Type | Method and Description |
---|---|
protected void |
addNode(Document doc,
Document node)
Adds the given node to the data model.
|
protected Document |
readNode(Document doc,
Object node)
Unmarshalls a node into the appropriate type.
|
protected void |
removeNode(Document doc,
Document node)
Removes the given node from the data model.
|
execute, undo
isNullOrUndefined, type
protected void removeNode(Document doc, Document node)
ReplaceNodeCommand
protected void addNode(Document doc, Document node)
ReplaceNodeCommand
addNode
in class ReplaceNodeCommand<Document>
ReplaceNodeCommand.addNode(io.apicurio.datamodels.core.models.Document, io.apicurio.datamodels.core.models.Node)
protected Document readNode(Document doc, Object node)
ReplaceNodeCommand
readNode
in class ReplaceNodeCommand<Document>
ReplaceNodeCommand.readNode(io.apicurio.datamodels.core.models.Document, java.lang.Object)
Copyright © 2019 Red Hat. All rights reserved.