|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object name.kevinlocke.ultragetopt.OptionArgumentPair
public class OptionArgumentPair
Class representing a command-line option and its argument (if any).
Constructor Summary | |
---|---|
OptionArgumentPair(CommandLineOption option,
java.lang.String argument)
Creates a new option-argument pair. |
Method Summary | |
---|---|
java.lang.String |
getArgument()
Gets the argument of the pair. |
CommandLineOption |
getOption()
Gets the option of the pair. |
void |
setArgument(java.lang.String argument)
Sets the argument. |
void |
setOption(CommandLineOption option)
Sets the option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionArgumentPair(CommandLineOption option, java.lang.String argument)
option
- the command-line optionargument
- the argument to the command-line optionMethod Detail |
---|
public java.lang.String getArgument()
setArgument(String)
public void setArgument(java.lang.String argument)
argument
- the argument to setgetArgument()
public CommandLineOption getOption()
setOption(CommandLineOption)
public void setOption(CommandLineOption option)
option
- the option to setgetOption()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |