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()
|
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]
|
inline |
Get the value of this instance.
- Returns
- {*} The value of the property
- Exceptions
-
Will throw error if 'hasValue' is false.
◆ value() [2/2]
|
inline |
Set the value of this instance.
- Parameters
-
{*} value the value to set
