Class ChangeTitleCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.ChangeTitleCommand
-
- All Implemented Interfaces:
ICommand
public class ChangeTitleCommand extends AbstractCommand
A command used to modify the title of a document.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ChangeTitleCommand()Constructor.ChangeTitleCommand(String newTitle)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
-
ChangeTitleCommand
public ChangeTitleCommand()
Constructor.
-
ChangeTitleCommand
public ChangeTitleCommand(String newTitle)
Constructor.- Parameters:
newTitle-
-
-