Package io.apicurio.datamodels.cmd
Class AbstractCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
AbstractReplaceNodeCommand,AbstractSchemaInhCommand,AddChannelItemCommand,AddExampleCommand,AddPathItemCommand,AddResponseDefinitionCommand,AddSchemaDefinitionCommand,AddSecurityRequirementCommand,AggregateCommand,ChangeContactCommand,ChangeDescriptionCommand,ChangeLicenseCommand,ChangePropertyCommand,ChangeTitleCommand,ChangeVersionCommand,DeleteAllExamplesCommand,DeleteAllExtensionsCommand,DeleteAllHeadersCommand,DeleteAllOperationsCommand,DeleteAllParametersCommand,DeleteAllPropertiesCommand,DeleteAllSecurityRequirementsCommand,DeleteAllSecuritySchemesCommand,DeleteAllServersCommand,DeleteAllTagsCommand,DeleteExtensionCommand,DeleteMediaTypeCommand,DeleteNodeCommand,ReplaceSecurityRequirementCommand
public abstract class AbstractCommand extends Object implements ICommand
A base class for all command implementations.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static intindexOf(Set<String> names, String name)protected booleanisNullOrUndefined(Object object)Returns true if the argument is either null or undefined.Stringtype()Returns the type of the command (i.e. the command's class name).
-
-
-
Method Detail
-
isNullOrUndefined
protected boolean isNullOrUndefined(Object object)
Returns true if the argument is either null or undefined.- Parameters:
object-
-
type
public final String type()
Description copied from interface:ICommandReturns the type of the command (i.e. the command's class name).- Specified by:
typein interfaceICommand- See Also:
ICommand.type()
-
-