com.chaosserver.bilbo.task.validate
Class ValidateTask

java.lang.Object
  |
  +--com.chaosserver.bilbo.task.BaseTask
        |
        +--com.chaosserver.bilbo.task.validate.ValidateTask
All Implemented Interfaces:
Task

public class ValidateTask
extends BaseTask

Looks for errors and inconsistencies in the directory against the mapping file.

Since:
Bilbo 2.0

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

mappingFilePresent

protected boolean mappingFilePresent
Flag indicating presence of the mapping file in the directory.


fromStyle

protected String fromStyle
Holds the fromStyle to validate.


toStyle

protected String toStyle
Holds the toStyle to validate.

Constructor Detail

ValidateTask

public ValidateTask()
Method Detail

setFromStyle

protected void setFromStyle(String fromStyle)
Setter for the fromStyle property.

Parameters:
fromStyle - the fromStyle property

getFromStyle

protected String getFromStyle()
Getter for the fromStyle property.

Returns:
fromStyle property

setToStyle

protected void setToStyle(String toStyle)
Setter for the toStyle property.

Parameters:
toStyle - the toStyle property

getToStyle

protected String getToStyle()
Getter for the toStyle property.

Returns:
the toStyle property

setMappingFilePresent

protected void setMappingFilePresent(boolean mappingFilePresent)
Setter for the mappingFilePresent property.

Parameters:
mappingFilePresent - the mappingFilePresent property

isMappingFilePresent

public boolean isMappingFilePresent()
Getter for the mappingFilePresent property.

Returns:
the mappingFilePresent property

parseTaskArguments

public void parseTaskArguments(String argumentString)
                        throws BadTaskCommandArgumentsException
Description copied from interface: Task
Parses the task specific argument string.

Parameters:
argumentString - the task specific argument string
Throws:
BadTaskCommandArgumentsException - if the argument string is invalid

execute

public void execute(File currentDirectory)
             throws ValidateException
Performs a bunch of validation and then spits the results to stdout.

Specified by:
execute in class BaseTask
Parameters:
currentDirectory - the directory to validate
Throws:
ValidateException - if there is an error validating


Copyright © 20020228