org.weborganic.ox.tool
Class CheckRoundTripCommand.CheckRoundTripResult

java.lang.Object
  extended by org.weborganic.ox.tool.CheckRoundTripCommand.CheckRoundTripResult
All Implemented Interfaces:
XMLWritable, Result
Enclosing class:
CheckRoundTripCommand

public final class CheckRoundTripCommand.CheckRoundTripResult
extends Object
implements Result

Version:
28 October 2013
Author:
Christophe Lauret

Constructor Summary
CheckRoundTripCommand.CheckRoundTripResult(PackageData data)
           
 
Method Summary
 PackageData data()
           
 void done()
          Invoke this method when the result are ready to compute the time consistently.
 Exception error()
           
 Model model()
           
 void setError(Exception ex)
           
 void setStatus(ResultStatus status)
           
 ResultStatus status()
           
 long time()
           
 void toXML(XMLWriter xml)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.weborganic.ox.tool.Result
data, error, model, status, time
 

Constructor Detail

CheckRoundTripCommand.CheckRoundTripResult

public CheckRoundTripCommand.CheckRoundTripResult(PackageData data)
Method Detail

toXML

public void toXML(XMLWriter xml)
           throws IOException
Specified by:
toXML in interface XMLWritable
Throws:
IOException

model

public final Model model()
Specified by:
model in interface Result
Returns:
The model used to generate that result.

data

public final PackageData data()
Specified by:
data in interface Result
Returns:
The ID of the data that has been processed.

time

public final long time()
Specified by:
time in interface Result
Returns:
The time it took to execute the command in milliseconds.

status

public final ResultStatus status()
Specified by:
status in interface Result
Returns:
The status of that result.

error

public Exception error()
Specified by:
error in interface Result
Returns:
Any error that may have occurred and caused the command to fail.

done

public final void done()
Invoke this method when the result are ready to compute the time consistently.


setStatus

public final void setStatus(ResultStatus status)
Parameters:
status - the status to set

setError

public final void setError(Exception ex)
Parameters:
ex - the exception causing the error.