NullModel
Model for missing values (null)
implements: hash, method, sequence<NullModel>, scalar
bundle: standard information structure (sismodel)
since 5.2.0
Model for missing values (null)
Model for missing value (null); behaves like neutral element.
The NullModel is not behaving like null for the freemarker operations ! and ??.
- Avoid using '!' operator
- Replace '??' operator by '?has_content'
[used as sequence][Integer:any] ↦ NullModel
since 5.2.0
returns itself ignoring given index 'any'
[used as boolean] ↦ Boolean
since 5.2.0
returns false
[used as scalar] ↦ String
since 5.2.0
returns empty string
Defined hash keys
<String:any> ↦ NullModel
since 5.2.0
returns itself ignoring given key 'any'
Methods
[used as method](Object:any) ↦ NullModel
since 5.2.0
returns itself
Built-Ins
?has_content ↦ false
since 5.2.0
returns false
[used as sequence]?size ↦ Integer
since 5.2.0
returns 0 (zero) always