Class ParameterLong


  • public class ParameterLong
    extends Parameter
    A long parameter used in either the recording or execution of a script action.
    • Field Detail

      • value

        private long value
        The parameter's value.
    • Constructor Detail

      • ParameterLong

        public ParameterLong​(java.lang.String paramLabel)
                      throws ParserException
        Creates a new ParameterLong object without any value.
        Parameters:
        paramLabel - The label/name to give to this parameter.
        Throws:
        ParserException - If there is a problem creating the parameter.
      • ParameterLong

        public ParameterLong​(java.lang.String paramLabel,
                             long paramValue)
                      throws ParserException
        Creates a new ParameterLong 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.
      • ParameterLong

        public ParameterLong​(java.lang.String paramLabel,
                             java.lang.String paramTypeString,
                             long paramValue)
                      throws ParserException
        Creates a new ParameterLong 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.
      • ParameterLong

        public ParameterLong​(java.lang.String paramLabel,
                             java.lang.String paramTypeString,
                             java.lang.String paramValueString)
                      throws ParserException
        Creates a new ParameterLong 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.
      • ParameterLong

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

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

      • getValue

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

        public java.lang.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​(java.lang.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​(long 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.