lib/parameters.js
function Parameter(options)
{
  // validate input
  Errors.assertInternal(Util.isObject(options));
  Errors.assertInternal(Util.isString(options.name));
  Errors.assertInternal(Util.exists(options.value));

  var name = options.name;
  var value = options.value;

  /**
   * Returns the name of the parameter.
   *
   * @returns {String}
   */
  this.getName = function ()
  {
    return name;
  };

  /**
   * Returns the value of the parameter.
   *
   * @returns {*}
   */
  this.getValue = function ()
  {
    return value;
  };

  /**
   * Updates the value of the parameter.
   *
   * @param {*} targetValue
   */
  this.setValue = function (targetValue)
  {
    value = targetValue;
  };
}
function Parameter(options)
{
  // validate input
  Errors.assertInternal(Util.isObject(options));
  Errors.assertInternal(Util.isString(options.name));
  Errors.assertInternal(Util.exists(options.value));

  var name = options.name;
  var value = options.value;

  /**
   * Returns the name of the parameter.
   *
   * @returns {String}
   */
  this.getName = function ()
  {
    return name;
  };

  /**
   * Returns the value of the parameter.
   *
   * @returns {*}
   */
  this.getValue = function ()
  {
    return value;
  };

  /**
   * Updates the value of the parameter.
   *
   * @param {*} targetValue
   */
  this.setValue = function (targetValue)
  {
    value = targetValue;
  };
}
function Parameter ( options ) { // validate input Errors . assertInternal ( Util . isObject ( options ) ) ; Errors . assertInternal ( Util . isString ( options . name ) ) ; Errors . assertInternal ( Util . exists ( options . value ) ) ; var name = options . name ; var value = options . value ; /**
   * Returns the name of the parameter.
   *
   * @returns {String}
   */ this . getName = function ( ) { return name ; } ; /**
   * Returns the value of the parameter.
   *
   * @returns {*}
   */ this . getValue = function ( ) { return value ; } ; /**
   * Updates the value of the parameter.
   *
   * @param {*} targetValue
   */ this . setValue = function ( targetValue ) { value = targetValue ; } ; }
Creates a new Parameter.

@param {Object} options
@constructor
Creates a new Parameter .