|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcommando.Command
Constructor Summary | |
Command()
Constructs an object representing a command and it's required and optional "Options". |
Method Summary | |
void |
addOption(Option option)
Add an option to the set of options supported by this command. |
java.lang.String |
getDescription()
|
Grouping |
getGrouping()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
boolean |
isAllowOptionless()
Determines whether this command will be executed even if there are no options specified. |
void |
setAllowOptionless(boolean optionless)
Sets whether this command will be executed even if there are no options specified.. |
void |
setDescription(java.lang.String desc)
|
void |
setGrouping(Grouping group)
Set the grouping object for this command. |
void |
setId(java.lang.String cmdId)
|
void |
setName(java.lang.String cmdName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Command()
Method Detail |
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getDescription()
public void setId(java.lang.String cmdId)
cmdId
- The cmdId to set.public void setName(java.lang.String cmdName)
cmdName
- The name to set.public void setDescription(java.lang.String desc)
desc
- The description to set.public Grouping getGrouping()
public void setGrouping(Grouping group)
group
- The grouping to set.public void addOption(Option option)
option
- the optionpublic boolean isAllowOptionless()
public void setAllowOptionless(boolean optionless)
optionless
- true if optionless execution is allowed,
false otherwises
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |