|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.chaosserver.bilbo.task.BaseTask | +--com.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 com.chaosserver.bilbo.task.BaseTask |
DEFAULT_HELP, 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 task specific 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 com.chaosserver.bilbo.task.BaseTask |
execute, executeRecursive, 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
Task
argumentString
- the task specific argument string
BadTaskCommandArgumentsException
- if the argument string is invalidprotected void parseFlags(String flags)
flags
- the task specific flagspublic void execute(File currentDirectory) throws ConvertException
execute
in class BaseTask
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 |