Value nodes

Value nodes are key-value pairs with optional keys. They cannot have child nodes and thus are always the leaves of settings node trees. Standalone values are rare: most of the time value nodes can be found inside objects or arrays.

Value nodes are typically mapped to primitive types during binding.

Properties

Property

Description

Name

Required if nested in an object node, optional otherwise.

Value

Useful payload. The value of a object field or array element. Can be null.

Children

Always returns an empty sequence.

this[name]

Always returns null.

Equality

Two value nodes are considered equal if their values match exactly and their names match up to differences in case.

Representation

Value("name", "value") --> "value"
Value("name", null) --> <null>
pageSettings nodespageSettings nodes merging

Last updated