com.ptc.windchill.upgrade.tool
Class AbstractStateWithThreadedWork.Outcome

java.lang.Object
  extended bycom.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork.Outcome
Enclosing class:
AbstractStateWithThreadedWork

public final class AbstractStateWithThreadedWork.Outcome
extends Object

Result object for threaded work.


Field Summary
private  boolean canceled_
           
private  Object resultObject_
           
 
Constructor Summary
AbstractStateWithThreadedWork.Outcome(boolean success)
          Create an outcome with no result object.
AbstractStateWithThreadedWork.Outcome(boolean success, Object result_object)
          Create an outcome with a result object that will be attached to the CANCEL or COMPLETE event.
 
Method Summary
 Object getResultObject()
           
 boolean wasCanceled()
           
 boolean wasSuccessful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canceled_

private boolean canceled_

resultObject_

private Object resultObject_
Constructor Detail

AbstractStateWithThreadedWork.Outcome

public AbstractStateWithThreadedWork.Outcome(boolean success)
Create an outcome with no result object.


AbstractStateWithThreadedWork.Outcome

public AbstractStateWithThreadedWork.Outcome(boolean success,
                                             Object result_object)
Create an outcome with a result object that will be attached to the CANCEL or COMPLETE event.

Method Detail

wasCanceled

public final boolean wasCanceled()

wasSuccessful

public final boolean wasSuccessful()

getResultObject

public final Object getResultObject()