public class CommandParameter extends java.lang.Object implements ICommandParameter, java.io.Serializable
Constructor and Description |
---|
CommandParameter() |
CommandParameter(java.lang.String name,
ParameterType type,
boolean required) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get parameter name.
|
ParameterType |
getType()
Get parameter datatype.
|
boolean |
isRequired()
Indicates if parameter is required for command.
|
void |
setName(java.lang.String name) |
void |
setRequired(boolean required) |
void |
setType(ParameterType type) |
public CommandParameter()
public CommandParameter(java.lang.String name, ParameterType type, boolean required)
public java.lang.String getName()
ICommandParameter
getName
in interface ICommandParameter
public void setName(java.lang.String name)
public ParameterType getType()
ICommandParameter
getType
in interface ICommandParameter
public void setType(ParameterType type)
public boolean isRequired()
ICommandParameter
isRequired
in interface ICommandParameter
public void setRequired(boolean required)