public abstract class AddSchemaDefinitionCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
boolean |
_defExisted |
String |
_newDefinitionName |
Object |
_newDefinitionObj |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addDefinition(OasDocument document,
OasSchema definition) |
protected abstract OasSchema |
createSchemaDefinition(OasDocument document) |
protected abstract boolean |
defExists(OasDocument document) |
void |
execute(Document document)
Called to execute the command against the given document.
|
protected abstract void |
prepareDocumentForDef(OasDocument document) |
protected abstract void |
removeDefinition(OasDocument document) |
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
isNullOrUndefined, type
public boolean _defExisted
public String _newDefinitionName
public Object _newDefinitionObj
public void execute(Document document)
ICommand
public void undo(Document document)
ICommand
protected abstract boolean defExists(OasDocument document)
protected abstract void prepareDocumentForDef(OasDocument document)
protected abstract OasSchema createSchemaDefinition(OasDocument document)
protected abstract void addDefinition(OasDocument document, OasSchema definition)
protected abstract void removeDefinition(OasDocument document)
Copyright © 2020 Red Hat. All rights reserved.