# Class: RequestParameter

## vertx-web-api-contract-js/request_parameter~ RequestParameter

#### new RequestParameter()

Request parameter holder

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 29

### Methods

#### getArray() → {Array.<RequestParameter>}

Returns null if value is not a list, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 123

##### Returns:

Type
  Array.<RequestParameter>

#### getBoolean() → {boolean}

Returns null if value is not a Boolean, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 291

##### Returns:

Type
  boolean

#### getDouble() → {number}

Returns null if value is not a Double, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 263

##### Returns:

Type
  number

#### getFloat() → {number}

Returns null if value is not a Float, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 235

##### Returns:

Type
  number

#### getInteger() → {number}

Returns null if value is not an Integer, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 179

##### Returns:

Type
  number

#### getJsonArray() → {todo}

Returns null if value is not a JsonArray, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 347

##### Returns:

Type
  todo

#### getJsonObject() → {Object}

Returns null if value is not a JsonObject, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 319

##### Returns:

Type
  Object

#### getLong() → {number}

Returns null if value is not a Long, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 207

##### Returns:

Type
  number

#### getName() → {string}

Get parameter name

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 67

##### Returns:

Type
  string

#### getObjectKeys() → {Array.<string>}

If value is a map of fields, it returns keys of map, otherwise it returns null

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 81

##### Returns:

Type
  Array.<string>

#### getObjectValue(key) → {RequestParameter}

If value is a map of fields, it returns value of field with key provided, otherwise it returns null

##### Parameters:

Name | Type | Description
--- | --- | ---
`key` | string |

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 95

##### Returns:

Type
  RequestParameter

#### getString() → {string}

Returns null if value is not a String, otherwise it returns value

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 151

##### Returns:

Type
  string

#### isArray() → {boolean}

Returns true if value of RequestParameter is an array

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 137

##### Returns:

Type
  boolean

#### isBoolean() → {boolean}

Returns true if value of RequestParameter is a Boolean instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 305

##### Returns:

Type
  boolean

#### isDouble() → {boolean}

Returns true if value of RequestParameter is a Double instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 277

##### Returns:

Type
  boolean

#### isEmpty() → {boolean}

Alias of RequestParameter#isNull

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 389

##### Returns:

Type
  boolean

#### isFloat() → {boolean}

Returns true if value of RequestParameter is a Float instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 249

##### Returns:

Type
  boolean

#### isInteger() → {boolean}

Returns true if value of RequestParameter is an Integer instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 193

##### Returns:

Type
  boolean

#### isJsonArray() → {boolean}

Returns true if value of RequestParameter is a JsonArray instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 361

##### Returns:

Type
  boolean

#### isJsonObject() → {boolean}

Returns true if value of RequestParameter is a JsonObject instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 333

##### Returns:

Type
  boolean

#### isLong() → {boolean}

Returns true if value of RequestParameter is a Long instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 221

##### Returns:

Type
  boolean

#### isNull() → {boolean}

Returns true if value is null

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 375

##### Returns:

Type
  boolean

#### isObject() → {boolean}

Returns true if value of RequestParameter is a map of fields

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 109

##### Returns:

Type
  boolean

#### isString() → {boolean}

Returns true if value of RequestParameter is a String instance

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 165

##### Returns:

Type
  boolean

#### merge(otherParameter) → {RequestParameter}

Merge this request parameter with another one. Note: the parameter passed by argument has the priority

##### Parameters:

Name | Type | Description
--- | --- | ---
`otherParameter` | RequestParameter |

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 403

##### Returns:

Type
  RequestParameter

#### setName(name)

Set parameter name

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | string |

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 40

#### setValue(value)

Set value

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | Object |

Source:
  - vertx-web-api-contract-js/request_parameter.js, line 53