Builder

data class Builder(val docType: String, namespaces: MutableMap<String, MdocNamespace.Builder> = mutableMapOf())

Builder class for class MdocDocumentType.

Parameters

docType

the docType of the ISO mdoc Document Type.

Constructors

Link copied to clipboard
constructor(docType: String, namespaces: MutableMap<String, MdocNamespace.Builder> = mutableMapOf())

Properties

Link copied to clipboard

Functions

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

Add a data element to a namespace in the mDoc Document Type.

Link copied to clipboard