Class ChangeDescriptionCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.ChangeDescriptionCommand
-
- All Implemented Interfaces:
ICommand
public class ChangeDescriptionCommand extends AbstractCommand
A command used to modify the description of a document.- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description String_newDescriptionboolean_nullInfoString_oldDescription
-
Constructor Summary
Constructors Constructor Description ChangeDescriptionCommand()Constructor.ChangeDescriptionCommand(String newDescription)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Document document)Called to execute the command against the given document.voidundo(Document document)Called to undo the command (restore the document to a previous state).-
Methods inherited from class io.apicurio.datamodels.cmd.AbstractCommand
indexOf, isNullOrUndefined, type
-
-
-
-
Constructor Detail
-
ChangeDescriptionCommand
public ChangeDescriptionCommand()
Constructor.
-
ChangeDescriptionCommand
public ChangeDescriptionCommand(String newDescription)
Constructor.- Parameters:
newDescription-
-
-