Detailed Description
Extension of elementData which allows for a missing property service to be called when an accessed property isn't available.
Engines, an extension of flowElements also allow a restricted property list so certain properties can be excluded
Inheritance diagram for AspectData:
Collaboration diagram for AspectData:
Public Member Functions | |
| constructor ({ flowElement, missingPropertyService=new MissingPropertyServiceBase() }) | |
| Constructor for AspectData. | |
| get (key) | |
| The aspectData getter runs a series of actions if a property has / has not been found. | |
Public Member Functions inherited from ElementData | |
| constructor ({ flowElement }) | |
| Constructor for elementData. | |
| getInternal (key) | |
| Internal get method for elementData to retrieve an element from it called via the elementData's get method This method is overriden by classes inheriting from elementData. | |
| get (key) | |
| A wrapper that performs actions before passing on processing (or skipping) the getInternal method. | |
| getAsString (key) | |
| Return string value of property. | |
| getAsFloat (key) | |
| Return float value of property. | |
| getAsInteger (key) | |
| Return int value of property. | |
Member Function Documentation
◆ constructor()
|
inline |
Constructor for AspectData.
- Parameters
-
{object} options options object {FlowElement} options.flowElement FlowElement the data is for {MissingPropertyService} options.missingPropertyService a missing property service to use when the property is in a FlowElement's property list but not in the data
◆ get()
|
inline |
The aspectData getter runs a series of actions if a property has / has not been found.
If it hasn't been found it runs the missing property service if the property is referenced by the flowElement/engine. If the property is found a further check to see if it is restricted by a list passed into the flowElement/engine.
- Parameters
-
{string} key the property key to lookup
- Returns
- {FlowData} result
