Package space.kscience.dataforge.meta.descriptors
Types
MetaDescriptor
Link copied to clipboard
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
MetaDescriptorBuilder
Link copied to clipboard
class MetaDescriptorBuilder
Content copied to clipboard
ValueRequirement
Link copied to clipboard
Restrictions on value in the node
Functions
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
enum
Link copied to clipboard
inline fun <E : Enum<E>> MetaDescriptorBuilder.enum(key: Name, default: E?, crossinline modifier: MetaDescriptorBuilder.() -> Unit = {}): MetaDescriptorBuilder
Content copied to clipboard
get
Link copied to clipboard
item
Link copied to clipboard
fun MetaDescriptorBuilder.item(name: String, block: MetaDescriptorBuilder.() -> Unit): MetaDescriptorBuilder
Content copied to clipboard
MetaDescriptor
Link copied to clipboard
fun MetaDescriptor(block: MetaDescriptorBuilder.() -> Unit): MetaDescriptor
Content copied to clipboard
node
Link copied to clipboard
fun MetaDescriptorBuilder.node(name: String, block: MetaDescriptorBuilder.() -> Unit)
Content copied to clipboard
fun MetaDescriptorBuilder.node(key: String, described: Described, block: MetaDescriptorBuilder.() -> Unit = {})
Content copied to clipboard
fun MetaDescriptorBuilder.node(name: Name, block: MetaDescriptorBuilder.() -> Unit): MetaDescriptorBuilder
Content copied to clipboard
Create and configure child value descriptor
required
Link copied to clipboard
scheme
Link copied to clipboard
inline fun <S : Scheme, T : Scheme> MetaDescriptorBuilder.scheme(property: KProperty1<S, T>, spec: SchemeSpec<T>, noinline block: MetaDescriptorBuilder.() -> Unit = {})
Content copied to clipboard
validate
Link copied to clipboard
Check if given item suits the descriptor
value
Link copied to clipboard
inline fun <S : Scheme, T> MetaDescriptorBuilder.value(property: KProperty1<S, T>, noinline block: MetaDescriptorBuilder.() -> Unit = {}): MetaDescriptorBuilder
Content copied to clipboard
fun MetaDescriptorBuilder.value(name: String, type: ValueType, vararg additionalTypes: ValueType, block: MetaDescriptorBuilder.() -> Unit = {}): MetaDescriptorBuilder
Content copied to clipboard
fun MetaDescriptorBuilder.value(name: Name, type: ValueType, vararg additionalTypes: ValueType, block: MetaDescriptorBuilder.() -> Unit = {}): MetaDescriptorBuilder
Content copied to clipboard
Create and configure child value descriptor