MetaDescriptor
fun MetaDescriptor(info: String? = null, children: Map<String, MetaDescriptor> = emptyMap(), multiple: Boolean = false, valueRequirement: ValueRequirement = ValueRequirement.NONE, valueTypes: List<ValueType>? = null, indexKey: String = Meta.INDEX_KEY, defaultValue: Value? = null, attributes: Meta = Meta.EMPTY)
Content copied to clipboard
Parameters
info
description text
children
child descriptors for this node
multiple
True if same name siblings with this name are allowed
required
The requirements for node content
valueTypes
list of allowed types for Meta.value, null if all values are allowed. Empty list means that no value should be present in this node.
indexKey
An index field by which this node is identified in case of same name siblings construct
defaultValue
the default Meta.value for the node
attributes
additional attributes of this descriptor. For example validation and widget parameters