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, type
public NodePath _parentPath
public String _serverUrl
public Object _serverObj
public Object _oldServer
public void execute(Document document)
ICommand
public void undo(Document document)
ICommand
Copyright © 2019 Red Hat. All rights reserved.