com.ddtek.xmlconverter
Class ConversionStatus

java.lang.Object
  extended by com.ddtek.xmlconverter.ConversionStatus

public abstract class ConversionStatus
extends Object

A class which contains status information for a Conversion.


Field Summary
static int FAILED
          A status value indicating the conversion has failed or was cancelled.
static int FINISHED
          A status value indicating the conversion finished successfully.
static int RUNNING
          A status value indicating the conversion is still running.
 
Constructor Summary
ConversionStatus()
           
 
Method Summary
abstract  Throwable getException()
          Get the Throwable which was thrown if the conversion failed or was cancelled.
abstract  int getStatus()
          Gets the current status of the Conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNNING

public static int RUNNING
A status value indicating the conversion is still running.


FINISHED

public static int FINISHED
A status value indicating the conversion finished successfully.


FAILED

public static int FAILED
A status value indicating the conversion has failed or was cancelled.

Constructor Detail

ConversionStatus

public ConversionStatus()
Method Detail

getException

public abstract Throwable getException()
Get the Throwable which was thrown if the conversion failed or was cancelled.

Returns:
The exception, or null if the conversion is still running or finished normally.

getStatus

public abstract int getStatus()
Gets the current status of the Conversion. Possible values are: RUNNING, FINISHED or FAILED

Returns:
The status value.