|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.util.CmdLineOption
class CmdLineOption
Field Summary | |
---|---|
(package private) java.lang.String |
comment
|
(package private) java.lang.String |
flag
|
(package private) boolean |
optional
|
(package private) java.lang.String |
usageText
|
Constructor Summary | |
---|---|
CmdLineOption(java.lang.String flag)
Creates a new CmdLineOption |
Method Summary | |
---|---|
java.lang.String |
getComment()
Returns the comment for this option |
java.lang.String |
getFlag()
Returns the flag associated with this command line option |
boolean |
getOptional()
Returns whether or not this CmdLineOption is optional or not |
java.lang.String |
getUsageText()
Returns the text to print after the flag when printing the usage line |
void |
setComment(java.lang.String comment)
Sets a comment for the flag |
void |
setOptional(boolean optional)
Sets whether or not this CmdLineOption is optional or not |
void |
setUsageText(java.lang.String usageText)
Sets the text to print after the flag when printing the usage line |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean optional
java.lang.String usageText
java.lang.String comment
java.lang.String flag
Constructor Detail |
---|
CmdLineOption(java.lang.String flag)
flag
- The flag associated with this command line optionMethod Detail |
---|
public java.lang.String getFlag()
public boolean getOptional()
public java.lang.String getComment()
public java.lang.String getUsageText()
public void setOptional(boolean optional)
optional
- the flag indicating whether or not this CmdLineOption
is optionalpublic void setComment(java.lang.String comment)
comment
- the comment to use when printing help for the given flagpublic void setUsageText(java.lang.String usageText)
usageText
- the usage text
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |