public class OutputDirectoryOption extends java.lang.Object implements OptionHandler
Modifier and Type | Field and Description |
---|---|
private static java.io.File |
m_outputDir |
static java.lang.String |
OPTION_OUTPUT_DIR |
Constructor and Description |
---|
OutputDirectoryOption() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOption()
Indicates the option string
|
java.io.File |
getOutputDirectory() |
void |
handleOption(java.lang.String value)
This function parses the argument at the current index.
|
boolean |
requireArguments()
Indicates whether or not this option requires an argument.
|
void |
setOutputDirectory(java.io.File dir) |
java.lang.String |
toString() |
public static java.lang.String OPTION_OUTPUT_DIR
private static java.io.File m_outputDir
public java.lang.String getOption()
OptionHandler
getOption
in interface OptionHandler
public boolean requireArguments()
OptionHandler
requireArguments
in interface OptionHandler
public void handleOption(java.lang.String value) throws java.lang.Exception
OptionHandler
handleOption
in interface OptionHandler
value
- the argument for the optionjava.lang.Exception
- in case of error.public java.lang.String toString()
toString
in class java.lang.Object
public java.io.File getOutputDirectory()
public void setOutputDirectory(java.io.File dir)