Class UserResponseInteraction

    • Constructor Detail

      • UserResponseInteraction

        public UserResponseInteraction()
    • Method Detail

      • getResultStatusMap

        protected abstract Map getResultStatusMap()
        Method that needs to be implemented by the sub-classes to intialize the result status Map. The map should be constructed with key = display item of a UserOption with value of InteractionResultStatus object that corresponds to that UserOption.
        Returns:
        a Map constructed with <UserOption display Item, InteractionResultStatus>.
      • getPromptValue

        public String getPromptValue​(IStateAccess state)
                              throws InstallException
        Description copied from class: BaseInteraction
        Method that needs to be implemented by the sub-classes to return a prompt value (default value) that needs to be displayed for the user to input data. If the prompt value other than null is returned then the prompt message will be some thing as in Example shown below: Enter the Server Port [8080]:
        Specified by:
        getPromptValue in class BaseInteraction
        Parameters:
        state - IStateAccess
        Returns:
        a String containing the default value or null if no value is present.
        Throws:
        InstallException - TODO