public abstract class RenameSchemaDefinitionCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
String |
_newName |
String |
_oldName |
List<NodePath> |
_references |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
_nameToReference(String name)
Convert a simple name to a reference.
|
protected abstract boolean |
_renameSchemaDefinition(OasDocument document,
String fromName,
String toName)
Called to actually change the name of the schema definition.
|
void |
execute(Document document)
Called to execute the command against the given document.
|
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
isNullOrUndefined, type
public void execute(Document document)
ICommand
public void undo(Document document)
ICommand
protected abstract String _nameToReference(String name)
protected abstract boolean _renameSchemaDefinition(OasDocument document, String fromName, String toName)
Copyright © 2021 Red Hat. All rights reserved.