Class StubData


  • public final class StubData
    extends java.lang.Object
    Provides capabilities to Missions Stubs for accessing data and generating parameters
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  StubData.Builder
      The Builder class to build StubData with the fields set
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static StubData.Builder from​(io.molr.commons.domain.Mission mission)  
      io.molr.commons.domain.Mission mission()  
      io.molr.commons.domain.Placeholder<?> parameterAt​(int index)  
      java.util.Map<java.lang.String,​java.lang.Object> parameters​(java.lang.Object... objects)
      The parameter map required by the represented Mission is constructed by the arguments provided.
      java.lang.Class<?> returnType()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mission

        public io.molr.commons.domain.Mission mission()
        Returns:
        the Mission being represented
      • returnType

        public java.lang.Class<?> returnType()
        Returns:
        the type of return value for Mission being represented
      • parameterAt

        public io.molr.commons.domain.Placeholder<?> parameterAt​(int index)
        Parameters:
        index - the index of parameter
        Returns:
        the Placeholder for parameter at given index
      • parameters

        public java.util.Map<java.lang.String,​java.lang.Object> parameters​(java.lang.Object... objects)
        The parameter map required by the represented Mission is constructed by the arguments provided.
        Parameters:
        objects - the paramters to Mission being represented
        Returns:
        the parameter map constructed with the arguments provided