|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.chaosserver.bilbo.task.BaseTask | +--net.chaosserver.bilbo.task.RecursiveTask | +--net.chaosserver.bilbo.task.RootFirstRecursiveTask | +--net.chaosserver.bilbo.task.convert.ConvertTask
Tasked used to convert between two different mappings.
Field Summary | |
protected int |
errorLevel
Holds the error level. |
protected String |
fromStyle
Holds the mapping style files start in. |
protected String |
toStyle
Holds the mapping style files end in. |
Fields inherited from class net.chaosserver.bilbo.task.BaseTask |
settings |
Constructor Summary | |
ConvertTask()
|
Method Summary | |
void |
execute(File currentDirectory)
Swaps the files in the directory. |
protected int |
getErrorLevel()
Getter for the errorLevel property. |
protected String |
getFromStyle()
Getter for the fromStyle property. |
protected String |
getToStyle()
Getter for the toStyle property. |
protected void |
parseFlags(String flags)
Parses the task specific flags. |
void |
parseTaskArguments(String argumentString)
Parses the input argument string. |
protected void |
setErrorLevel(int errorLevel)
Setter for the errorLevel property. |
protected void |
setFromStyle(String fromStyle)
Setter for the fromStyle property. |
protected void |
setToStyle(String toStyle)
Setter for the toStyle property. |
Methods inherited from class net.chaosserver.bilbo.task.RootFirstRecursiveTask |
executeRecursive |
Methods inherited from class net.chaosserver.bilbo.task.RecursiveTask |
executeSpecific, isRootDirectory |
Methods inherited from class net.chaosserver.bilbo.task.BaseTask |
execute, getHelpResource, getSettings, printHelp, setSettings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String fromStyle
protected String toStyle
protected int errorLevel
Constructor Detail |
public ConvertTask()
Method Detail |
protected void setFromStyle(String fromStyle)
fromStyle
- the fromStyle propertyprotected String getFromStyle()
protected void setToStyle(String toStyle)
toStyle
- the toStyle propertyprotected String getToStyle()
protected void setErrorLevel(int errorLevel)
errorLevel
- the errorLevel propertyprotected int getErrorLevel()
public void parseTaskArguments(String argumentString) throws BadTaskCommandArgumentsException
[-e#] fromStyle toStyle
parseTaskArguments
in interface Task
parseTaskArguments
in class BaseTask
argumentString
- the string to parse
BadTaskCommandArgumentsException
- indicates a bad
argument string was givenprotected void parseFlags(String flags)
flags
- the task specific flagspublic void execute(File currentDirectory) throws ConvertException
execute
in class RecursiveTask
currentDirectory
- the directory to execute against
ConvertException
- if something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |