|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.cmd.CommandDescriptor
A CommandDescriptor
is the object representation of a command as it is specified in a
command.xml
file.
Constructor Summary | |
CommandDescriptor(java.lang.String name,
java.lang.String aliasString)
|
Method Summary | |
void |
addOptions(org.apache.commons.cli.Options options)
|
boolean |
equals(java.lang.Object o)
Commands are equal when their names are equal or any alias equals an alias from o or the other way
around. |
java.lang.String |
getAlias()
|
java.util.Set |
getAliasList()
The aliasses of a command are all Strings by which the command can be referenced (including its name). |
java.lang.String |
getClassName()
|
java.lang.String |
getDescription()
|
java.lang.String |
getHelp()
|
java.lang.String |
getName()
Returns the name of the command represented by this CommandDescriptor . |
org.apache.commons.cli.Options |
getOptions()
|
void |
setClassName(java.lang.String className)
|
void |
setDescription(java.lang.String description)
|
void |
setHelp(java.lang.String helpText)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandDescriptor(java.lang.String name, java.lang.String aliasString)
Method Detail |
public java.lang.String getName()
CommandDescriptor
.
CommandDescriptor
public java.util.Set getAliasList()
public java.lang.String getAlias()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void addOptions(org.apache.commons.cli.Options options)
options
- The name of the command (the lt;options>-child-element attribute of the <command>-element).public org.apache.commons.cli.Options getOptions()
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public void setHelp(java.lang.String helpText)
public java.lang.String getHelp()
public boolean equals(java.lang.Object o)
o
or the other way
around.
o
- The object instance that should be compared with this
.
true
if this command descriptor is equal to o
or null
when
o
is not a CommandDescriptor
instance or when it is not the same object.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |