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, typepublic String _schemeName
public Object _schemeObj
public Object _oldScheme
public void execute(Document document)
ICommandpublic void undo(Document document)
ICommandprotected 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.