Package dev.runabout

Class 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)  
    • Constructor Detail

      • RunaboutInstance

        public RunaboutInstance​(java.lang.String type,
                                java.lang.String eval,
                                java.util.Set<java.lang.String> dependencies)
    • Method Detail

      • getType

        public java.lang.String getType()
      • getEval

        public java.lang.String getEval()
        Description copied from interface: RunaboutInput
        Gets the eval String for the Runabout input, which is a java expression that evaluates to an object.
        Specified by:
        getEval in interface RunaboutInput
        Returns:
        The eval String.
      • getDependencies

        public java.util.Set<java.lang.String> getDependencies()
        Description copied from interface: RunaboutInput
        Gets the dependencies for the Runabout input, which are the fully qualified class names of all classes used in the eval String.
        Specified by:
        getDependencies in interface RunaboutInput
        Returns:
        A set of the dependencies.
      • toJsonObject

        public JsonObject toJsonObject​(java.util.function.Supplier<JsonObject> jsonFactory)