|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.chaosserver.bilbo.task.Settings
Holds the settings for the current execution of Bilbo.
Field Summary | |
protected String |
fileMappingName
Holds the name of the mapping file. |
protected boolean |
help
Holds the help flag. |
protected static Logger |
logger
Holds the logger. |
protected boolean |
recursive
Holds if the recursive flag. |
protected File |
rootDirectory
Holds the root directory a task is being executing on. |
protected String |
taskArgs
Holds the argument string being passed to the task. |
protected String |
taskName
Holds the name of the task being executed. |
protected boolean |
verbose
Holds the verbosity flag. |
Constructor Summary | |
Settings()
Default constructor. |
Method Summary | |
protected String |
generateArgString(String[] args)
Converts the arguments array into a single string. |
String |
getFileMappingName()
Getter for the file mapping name. |
File |
getRootDirectory()
Getter for the root directory. |
String |
getTaskArgs()
Getter for the task argument string. |
String |
getTaskName()
Getter for the name of the task. |
boolean |
isHelp()
Getter for the help property |
boolean |
isRecursive()
Getter for the recursive flag. |
boolean |
isVerbose()
Getter for the verbosity flag. |
void |
parseArguments(String[] args)
Parses the argument string and sets the various properties. |
protected void |
parseMainArguments(String mainArgs)
Parses the main arguments in the argument string. |
void |
setFileMappingName(String fileMappingName)
Setter for the file mapping name. |
protected void |
setHelp(boolean help)
Setter for the help property |
protected void |
setRecursive(boolean recursive)
Setter for the recursive flag. |
void |
setRootDirectory(File rootDirectory)
Setter for the root directory. |
protected void |
setTaskArgs(String taskArgs)
Setter for the task argument string. |
protected void |
setTaskName(String taskName)
Setter for the name of the task. |
protected void |
setVerbose(boolean verbose)
Setter for the verbosity flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Logger logger
protected File rootDirectory
protected boolean verbose
protected String taskName
protected String taskArgs
protected boolean recursive
protected String fileMappingName
protected boolean help
Constructor Detail |
public Settings()
Method Detail |
protected void setTaskName(String taskName)
taskName
- the name of the task.public String getTaskName()
protected void setVerbose(boolean verbose)
verbose
- if verbosity is onpublic boolean isVerbose()
protected void setRecursive(boolean recursive)
recursive
- value of the recursive flagpublic boolean isRecursive()
protected void setTaskArgs(String taskArgs)
taskArgs
- the task argument stringpublic String getTaskArgs()
public void setRootDirectory(File rootDirectory)
rootDirectory
- the root directorypublic File getRootDirectory()
public void setFileMappingName(String fileMappingName)
public String getFileMappingName()
protected void setHelp(boolean help)
help
- the help propertypublic boolean isHelp()
public void parseArguments(String[] args) throws BadCommandArgumentsException
args
- the array of command line arguments.
BadCommandArgumentsException
protected void parseMainArguments(String mainArgs)
mainArgs
- Arguments appearing before the task name.protected String generateArgString(String[] args)
args
- The arguments array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |