MetaDescriptor
data class MetaDescriptor(info: String?, children: Map<String, MetaDescriptor>, multiple: Boolean, valueRequirement: ValueRequirement, valueTypes: List<ValueType>?, indexKey: String, defaultValue: Value?, attributes: Meta)
Content copied to clipboard
The descriptor for a meta
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
Constructors
MetaDescriptor
Link copied to clipboard
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
Types
Properties
attributes
Link copied to clipboard
children
Link copied to clipboard
defaultNode
Link copied to clipboard
defaultValue
Link copied to clipboard
valueRequirement
Link copied to clipboard
valueTypes
Link copied to clipboard
Extensions
allowedValues
Link copied to clipboard
copy
Link copied to clipboard
fun MetaDescriptor.copy(block: MetaDescriptorBuilder.() -> Unit = {}): MetaDescriptor
Content copied to clipboard
Make a deep copy of this descriptor applying given transformation block
get
Link copied to clipboard
required
Link copied to clipboard
validate
Link copied to clipboard
Check if given item suits the descriptor