Class SetPropertyCommand<T>
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.ChangePropertyCommand<T>
-
- io.apicurio.datamodels.cmd.commands.SetPropertyCommand<T>
-
- All Implemented Interfaces:
ICommand
public class SetPropertyCommand<T> extends ChangePropertyCommand<T>
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. This differs fromChangePropertyCommandin that it can be constructed from aNodePathrather than aNodeand therefore can be used inAggregateCommanduse-cases where there is a Create followed by a SetProperty.- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
-
Fields inherited from class io.apicurio.datamodels.cmd.commands.ChangePropertyCommand
_newValue, _nodePath, _oldValue, _property
-
-
Constructor Summary
Constructors Constructor Description SetPropertyCommand()Constructor.SetPropertyCommand(NodePath nodePath, String property, T newValue)Constructor.
-
Method Summary
-
Methods inherited from class io.apicurio.datamodels.cmd.commands.ChangePropertyCommand
execute, undo
-
Methods inherited from class io.apicurio.datamodels.cmd.AbstractCommand
indexOf, isNullOrUndefined, type
-
-