A basic extension of elementData with dictionary object storage / lookup.
|
| | constructor ({ flowElement, contents }) |
| | Constructor for ElementDataDictionary.
|
| | 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.
|
| | getInternalIgnoringCase (key) |
| | Looks for a key again ignoring its letter case, after getInternal found nothing for the key as given, because property names are compared ignoring case.
|
| | 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.
|
| ElementDataDictionary::constructor |
( |
| { flowElement, contents } | ) |
|
|
inline |
Constructor for ElementDataDictionary.
- Parameters
-
| {object} | options options object |
| {FlowElement} | options.flowElement FlowElement the options are added to |
| {object} | options.contents // key value dictionary |