Class WoolInputNumericCommand

    • Constructor Detail

      • WoolInputNumericCommand

        public WoolInputNumericCommand​(String variableName)
    • Method Detail

      • getVariableName

        public String getVariableName()
      • setVariableName

        public void setVariableName​(String variableName)
      • setMin

        public void setMin​(Integer min)
      • setMax

        public void setMax​(Integer max)
      • getParameters

        public Map<String,​?> getParameters()
        Description copied from class: WoolInputCommand
        Returns the parameters for this input command to send to the client. This is a map from parameter names to values. A value can be any JSON type. This method should only be called on a command that has already been executed with executeBodyCommand(). This means that any variables in parameter values have already been resolved.
        Specified by:
        getParameters in class WoolInputCommand
        Returns:
        the parameters for this input command to send to the client
      • getReadVariableNames

        public void getReadVariableNames​(Set<String> varNames)
        Description copied from class: WoolCommand
        Retrieves all variable names that are read in this command and adds them to the specified set.
        Specified by:
        getReadVariableNames in class WoolCommand
        Parameters:
        varNames - the set to which the variable names are added
      • getWriteVariableNames

        public void getWriteVariableNames​(Set<String> varNames)
        Description copied from class: WoolCommand
        Retrieves all variable names that are written in this command and adds them to the specified set.
        Specified by:
        getWriteVariableNames in class WoolCommand
        Parameters:
        varNames - the set to which the variable names are added
      • executeBodyCommand

        public void executeBodyCommand​(Map<String,​Object> variables,
                                       WoolNodeBody processedBody)
                                throws EvaluationException
        Description copied from class: WoolCommand
        This method is called if this command occurs in a statement body. It executes the command with respect to the specified variable map. Any body content that should be sent to the client, is added to "processedBody". This content can be text or client commands, with all variables resolved.
        Specified by:
        executeBodyCommand in class WoolCommand
        Parameters:
        variables - the variable map
        processedBody - the processed body
        Throws:
        EvaluationException - if an expression cannot be evaluated
      • getStatementLog

        public String getStatementLog​(WoolVariableStore varStore)
        Description copied from class: WoolInputCommand
        Returns the string to use in the user statement log in place of this input command. It can use variable values from the specified variable store. This method should only be called on a command that has already been executed with executeBodyCommand(). This means that any variables in parameter values have already been resolved.
        Specified by:
        getStatementLog in class WoolInputCommand
        Parameters:
        varStore - the variable store
        Returns:
        the statement log