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.
get value ()
 Get the value of this instance.
set value (value)
 Set the value of this instance.

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
Willthrow 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