Package dev.runabout
Class RunaboutInstance
- java.lang.Object
-
- dev.runabout.RunaboutInstance
-
- All Implemented Interfaces:
RunaboutInput
public class RunaboutInstance extends java.lang.Object implements RunaboutInput
POJO representing the json structure of a single object as an input for a Runabout scenario.
-
-
Constructor Summary
Constructors Constructor Description RunaboutInstance(java.lang.String type, java.lang.String eval, java.util.Set<java.lang.String> dependencies)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getDependencies()Gets the dependencies for the Runabout input, which are the fully qualified class names of all classes used in the eval String.java.lang.StringgetEval()Gets the eval String for the Runabout input, which is a java expression that evaluates to an object.java.lang.StringgetType()static RunaboutInstanceof(java.lang.String type, RunaboutInput input)JsonObjecttoJsonObject()JsonObjecttoJsonObject(java.util.function.Supplier<JsonObject> jsonFactory)
-
-
-
Method Detail
-
getType
public java.lang.String getType()
-
getEval
public java.lang.String getEval()
Description copied from interface:RunaboutInputGets the eval String for the Runabout input, which is a java expression that evaluates to an object.- Specified by:
getEvalin interfaceRunaboutInput- Returns:
- The eval String.
-
getDependencies
public java.util.Set<java.lang.String> getDependencies()
Description copied from interface:RunaboutInputGets the dependencies for the Runabout input, which are the fully qualified class names of all classes used in the eval String.- Specified by:
getDependenciesin interfaceRunaboutInput- Returns:
- A set of the dependencies.
-
toJsonObject
public JsonObject toJsonObject()
-
toJsonObject
public JsonObject toJsonObject(java.util.function.Supplier<JsonObject> jsonFactory)
-
of
public static RunaboutInstance of(java.lang.String type, RunaboutInput input)
-
-