Class CommandDefinition
java.lang.Object
org.eclipse.dirigible.engine.command.definition.CommandDefinition
public class CommandDefinition extends Object
The Class CommandDefinition.
-
Constructor Summary
Constructors Constructor Description CommandDefinition() -
Method Summary
Modifier and Type Method Description List<CommandLine>getCommands()Gets the commands.StringgetContentType()Gets the content type.StringgetDescription()Gets the description.Map<String,String>getSet()Gets the sets the.CommandLinegetTargetCommand()Gets the target command.List<String>getUnset()Gets the unset.voidsetContentType(String contentType)Sets the content type.voidsetDescription(String description)Sets the description.voidsetTargetCommand(CommandLine targetCommand)Sets the target command.voidvalidate()Validate.
-
Constructor Details
-
CommandDefinition
public CommandDefinition()
-
-
Method Details
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
getContentType
Gets the content type.- Returns:
- the content type
-
setContentType
Sets the content type.- Parameters:
contentType- the new content type
-
getCommands
Gets the commands.- Returns:
- the commands
-
getSet
Gets the sets the.- Returns:
- the sets the
-
getUnset
Gets the unset.- Returns:
- the unset
-
getTargetCommand
Gets the target command.- Returns:
- the target command
-
setTargetCommand
Sets the target command.- Parameters:
targetCommand- the new target command
-
validate
Validate.- Throws:
IllegalArgumentException- the illegal argument exception
-