|
||||||||||
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.validate.ValidateTask
Looks for errors and inconsistencies in the directory against the mapping file.
Field Summary | |
protected String |
fromStyle
Holds the fromStyle to validate. |
protected boolean |
mappingFilePresent
Flag indicating presence of the mapping file in the directory. |
protected String |
toStyle
Holds the toStyle to validate. |
Fields inherited from class com.chaosserver.bilbo.task.BaseTask |
DEFAULT_HELP, settings |
Constructor Summary | |
ValidateTask()
|
Method Summary | |
void |
execute(File currentDirectory)
Performs a bunch of validation and then spits the results to stdout. |
protected String |
getFromStyle()
Getter for the fromStyle property. |
protected String |
getToStyle()
Getter for the toStyle property. |
boolean |
isMappingFilePresent()
Getter for the mappingFilePresent property. |
void |
parseTaskArguments(String argumentString)
Parses the task specific argument string. |
protected void |
setFromStyle(String fromStyle)
Setter for the fromStyle property. |
protected void |
setMappingFilePresent(boolean mappingFilePresent)
Setter for the mappingFilePresent 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 boolean mappingFilePresent
protected String fromStyle
protected String toStyle
Constructor Detail |
public ValidateTask()
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 setMappingFilePresent(boolean mappingFilePresent)
mappingFilePresent
- the mappingFilePresent propertypublic boolean isMappingFilePresent()
public void parseTaskArguments(String argumentString) throws BadTaskCommandArgumentsException
Task
argumentString
- the task specific argument string
BadTaskCommandArgumentsException
- if the argument string is invalidpublic void execute(File currentDirectory) throws ValidateException
execute
in class BaseTask
currentDirectory
- the directory to validate
ValidateException
- if there is an error validating
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |