public class ChangeServerCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
Object |
_oldServer |
NodePath |
_parentPath |
Object |
_serverObj |
String |
_serverUrl |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Document document)
Called to execute the command against the given document.
|
protected void |
replaceServerWith(Server toServer,
Object fromServer)
Replaces the content of a server with the content from another server.
|
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
isNullOrUndefined, typepublic NodePath _parentPath
public String _serverUrl
public Object _serverObj
public Object _oldServer
public void execute(Document document)
ICommandpublic void undo(Document document)
ICommandCopyright © 2019 Red Hat. All rights reserved.