Class ChangePropertyCommand<T>
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.ChangePropertyCommand<T>
-
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
SetPropertyCommand
public class ChangePropertyCommand<T> extends AbstractCommand
A command used to modify the simple property of a node. Should not be used to modify complex (object) properties, only simple property types like string, boolean, number, etc.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ChangePropertyCommand()Constructor.ChangePropertyCommand(Node node, String property, T newValue)C'tor.
-
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
-
-
-
-
Method Detail
-
execute
public void execute(Document document)
Description copied from interface:ICommandCalled to execute the command against the given document.- See Also:
ICommand.execute(Document)
-
-