Package com.facilita.fc.eggPlant
Class EggplantReturnData
- java.lang.Object
-
- com.facilita.fc.eggPlant.EggplantReturnData
-
public class EggplantReturnData extends java.lang.ObjectRepresents the data returned by a call to the eggPlant system, as returned byEggplantVirtualUserInterface.execute(String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intduration()Get the duration in milliseconds of the call to eggPlant.java.lang.Objectget(java.lang.String key)Gets the object in the data returned by the call to eggPlant.java.lang.Stringoutput()Gets the text produced by a call to eggPlant.ScriptResultsresult()Get the result of the call to eggPlant.java.lang.ObjectreturnValue()Get the return value of the call to eggPlant.booleantimedOut()java.lang.StringtoString()
-
-
-
Method Detail
-
duration
public int duration() throws BadValueExceptionGet the duration in milliseconds of the call to eggPlant.- Returns:
- the duration in milliseconds of the call to eggPlant.
- Throws:
BadValueException- eggPlant did not return the duration data
-
returnValue
public java.lang.Object returnValue() throws BadValueExceptionGet the return value of the call to eggPlant.- Returns:
- the object
- Throws:
BadValueException- the bad value exception
-
output
public java.lang.String output() throws BadValueExceptionGets the text produced by a call to eggPlant.- Returns:
- the text logged by eggPlant
- Throws:
BadValueException- eggPlant did not return any data
-
timedOut
public boolean timedOut() throws BadValueException- Throws:
BadValueException
-
result
public ScriptResults result() throws BadValueException
Get the result of the call to eggPlant.- Returns:
- The result of the call to eggPlant.
- Throws:
BadValueException- eggPlant did not return any data
-
get
public java.lang.Object get(java.lang.String key) throws BadValueExceptionGets the object in the data returned by the call to eggPlant.- Parameters:
key- the name of the object to return- Returns:
- the object
- Throws:
BadValueException- The key does not exist
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-