|
||||||||||
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.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 net.chaosserver.bilbo.task.BaseTask |
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 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 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 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
fromstyle tostyle
.
parseTaskArguments
in interface Task
parseTaskArguments
in class BaseTask
argumentString
- the string to parse
BadTaskCommandArgumentsException
- if the arguments do
not match expected.public void execute(File currentDirectory) throws ValidateException
execute
in class RecursiveTask
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 |