public abstract class ChangeSecuritySchemeCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
Object |
_oldScheme |
String |
_schemeName |
Object |
_schemeObj |
Modifier and Type | Method and Description |
---|---|
void |
execute(Document document)
Called to execute the command against the given document.
|
protected abstract SecurityScheme |
getSchemeFromDocument(Document document)
Gets the scheme from the document.
|
protected void |
nullScheme(SecurityScheme scheme)
Null out all values in the given scheme.
|
protected void |
replaceSchemeWith(SecurityScheme toScheme,
Object fromScheme)
Replaces the content of a scheme with the content from another scheme.
|
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
isNullOrUndefined, type
public String _schemeName
public Object _schemeObj
public Object _oldScheme
public void execute(Document document)
ICommand
public void undo(Document document)
ICommand
protected abstract SecurityScheme getSchemeFromDocument(Document document)
protected void replaceSchemeWith(SecurityScheme toScheme, Object fromScheme)
toScheme
- fromScheme
- protected void nullScheme(SecurityScheme scheme)
scheme
- Copyright © 2019 Red Hat. All rights reserved.