Class AddChannelItemCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.AddChannelItemCommand
-
- All Implemented Interfaces:
ICommand
public class AddChannelItemCommand extends AbstractCommand
A command used to add a new channelItem in a document. Source for the new channelItem must be provided. This source will be converted to an AAI channelItem object and then added to the data model.- Author:
- laurent.broudoux@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description boolean_channelItemExistsboolean_emptyChannelItemsString_newChannelItemNamecom.fasterxml.jackson.databind.node.ObjectNode_newChannelItemObj
-
Constructor Summary
Constructors Constructor Description AddChannelItemCommand()AddChannelItemCommand(String channelItemName, com.fasterxml.jackson.databind.node.ObjectNode from)
-
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
-
-
-
-
Field Detail
-
_channelItemExists
public boolean _channelItemExists
-
_emptyChannelItems
public boolean _emptyChannelItems
-
_newChannelItemName
public String _newChannelItemName
-
_newChannelItemObj
public com.fasterxml.jackson.databind.node.ObjectNode _newChannelItemObj
-
-
Constructor Detail
-
AddChannelItemCommand
public AddChannelItemCommand()
-
AddChannelItemCommand
public AddChannelItemCommand(String channelItemName, com.fasterxml.jackson.databind.node.ObjectNode from)
-
-