Builder

data class Builder(val namespace: String, val dataElements: MutableMap<String, MdocDataElement> = mutableMapOf())

Builder class for class MdocNamespace.

Parameters

namespace

the namespace of this part of the ISO mdoc Document Type.

dataElements

the data elements in this namespace.

Constructors

Link copied to clipboard
constructor(namespace: String, dataElements: MutableMap<String, MdocDataElement> = mutableMapOf())

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addDataElement(type: DocumentAttributeType, identifier: String, displayName: String, description: String, mandatory: Boolean, icon: Icon?, sampleValue: DataItem?): MdocNamespace.Builder

Add a data element to a namespace in the ISO mdoc Document Type.

Link copied to clipboard