Class ParameterBoolean

java.lang.Object
gov.nih.mipav.model.scripting.parameters.Parameter
gov.nih.mipav.model.scripting.parameters.ParameterBoolean

public class ParameterBoolean extends Parameter
A boolean parameter used in either the recording or execution of a script action.
  • Field Details

    • value

      private boolean value
      The parameter's value.
  • Constructor Details

    • ParameterBoolean

      public ParameterBoolean(String paramLabel) throws ParserException
      Creates a new ParameterBoolean object with no value.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      Throws:
      ParserException - If there is a problem creating the parameter.
    • ParameterBoolean

      public ParameterBoolean(String paramLabel, boolean paramValue) throws ParserException
      Creates a new ParameterBoolean with a new value.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      paramValue - The new parameter value.
      Throws:
      ParserException - If there is a problem creating the parameter.
    • ParameterBoolean

      public ParameterBoolean(String paramLabel, String paramTypeString, boolean paramValue) throws ParserException
      Creates a new ParameterBoolean object.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      paramTypeString - The type of this parameter, in string form.
      paramValue - The new parameter value.
      Throws:
      ParserException - If there is a problem creating the parameter.
    • ParameterBoolean

      public ParameterBoolean(String paramLabel, String paramTypeString, String paramValueString) throws ParserException
      Creates a new ParameterBoolean object.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      paramTypeString - The type of this parameter, in string form.
      paramValueString - The new parameter value in string form.
      Throws:
      ParserException - If there is a problem creating the parameter.
    • ParameterBoolean

      public ParameterBoolean(String paramLabel, int paramType, boolean paramValue) throws ParserException
      Creates a new ParameterBoolean object.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      paramType - The type of this parameter (should be PARAM_BOOLEAN).
      paramValue - The new parameter value.
      Throws:
      ParserException - If there is a problem creating the parameter.
    • ParameterBoolean

      public ParameterBoolean(String paramLabel, int paramType, String paramValueString) throws ParserException
      Creates a new ParameterBoolean object.
      Parameters:
      paramLabel - The label/name to give to this parameter.
      paramType - The type of this parameter (should be PARAM_BOOLEAN).
      paramValueString - The new parameter value in string form.
      Throws:
      ParserException - If there is a problem creating the parameter.
  • Method Details

    • getValue

      public boolean getValue()
      Returns the parameter value.
      Returns:
      The parameter value.
    • getValueString

      public String getValueString()
      Returns the parameter value as a string.
      Specified by:
      getValueString in class Parameter
      Returns:
      The parameter value in string form.
    • setValue

      public void setValue(String paramValueString) throws ParserException
      Changes the parameter's current value.
      Specified by:
      setValue in class Parameter
      Parameters:
      paramValueString - The new parameter value in String form.
      Throws:
      ParserException - If there is a problem changing the parameter value.
    • setValue

      public void setValue(boolean paramValue) throws ParserException
      Changes the parameter's current value.
      Parameters:
      paramValue - The new parameter value.
      Throws:
      ParserException - If there is a problem changing the parameter value.