com.sodius.mdw.core.eval.report
Class GeneratedFileStatus

java.lang.Object
  extended by com.sodius.mdw.core.eval.report.GeneratedFileStatus

public final class GeneratedFileStatus
extends Object

Describes the state of a generated file.

This class cannot be instantiated or subclassed by clients.

See Also:
GeneratedFile.getStatus()

Field Summary
static GeneratedFileStatus CHANGED
          The generated file already exists, but its contents differs from the previous one.
static GeneratedFileStatus NEW
          The generated file is new, it did not exist before the evaluation started.
static GeneratedFileStatus UNCHANGED
          The generated file already exists, and its contents is the same as from the previous one.
 
Method Summary
 String toString()
          Returns a String representation of the file status.
static GeneratedFileStatus valueOf(String value)
          Determines the file status represented as a String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEW

public static final GeneratedFileStatus NEW
The generated file is new, it did not exist before the evaluation started.


CHANGED

public static final GeneratedFileStatus CHANGED
The generated file already exists, but its contents differs from the previous one.


UNCHANGED

public static final GeneratedFileStatus UNCHANGED
The generated file already exists, and its contents is the same as from the previous one. The file is overwritten only if requested to.

See Also:
EvaluationConfiguration.isFileOverwriteForced()
Method Detail

valueOf

public static GeneratedFileStatus valueOf(String value)
                                   throws IllegalArgumentException
Determines the file status represented as a String value.

Parameters:
value - a String representing a file status.
Returns:
the corresponding file status.
Throws:
IllegalArgumentException - if the value is not recognized.

toString

public String toString()
Returns a String representation of the file status.

Overrides:
toString in class Object
Returns:
the file status as a String.