\r\n

51Degrees Pipeline Node.js  4.4

51Degrees Pipeline for Node.js

AspectPropertyValue Class Reference

Detailed Description

An AspectPropertyValue is a wrapper for a value It lets you check this wrapper has a value inside it If not value is set, a specific no value message is returned.

Public Member Functions

 constructor (noValueMessage='No value has been set.', value)
Constructor for AspectPropertyValue. More...
get  value ()
Get the value of this instance. More...
set  value (value)
Set the value of this instance. More...

Member Function Documentation

◆ constructor()

AspectPropertyValue::constructor (   noValueMessage = 'No value has been set.',
  value  
)
inline

Constructor for AspectPropertyValue.

Parameters
{string} - noValueMessage The message to show when no value is set
{*} - value The value inside the wrapper

◆ value() [1/2]

get AspectPropertyValue::value ( )
inline

Get the value of this instance.

Returns
{*} The value of the property
Exceptions
Will - throw error if 'hasValue' is false.

◆ value() [2/2]

set AspectPropertyValue::value (   value )
inline

Set the value of this instance.

Parameters
{*} - value the value to set