|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.UserOptions.RequiredArgSwitch
public abstract static class UserOptions.RequiredArgSwitch
Constructor Summary | |
---|---|
UserOptions.RequiredArgSwitch(int shortForm,
java.lang.String longName,
java.lang.String helpText,
java.lang.String argName)
|
Method Summary | |
---|---|
java.lang.String |
getArgumentName()
If the switch has an argument, what name should be used to identify it in the help text. |
boolean |
hasRequiredArgument()
Return true if and only if, this command line switch
requires an argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.llnl.babel.cli.CommandLineSwitch |
---|
processCommandSwitch |
Constructor Detail |
---|
public UserOptions.RequiredArgSwitch(int shortForm, java.lang.String longName, java.lang.String helpText, java.lang.String argName)
Method Detail |
---|
public boolean hasRequiredArgument()
CommandLineSwitch
true
if and only if, this command line switch
requires an argument. If this method returns true
,
hasOptionalArgument should return false
.
hasRequiredArgument
in interface CommandLineSwitch
true
implies that the switch take an optional
argument; false
implies that it does not.public java.lang.String getArgumentName()
CommandLineSwitch
getArgumentName
in interface CommandLineSwitch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |