addDataElement

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.

Parameters

namespace

the namespace of the ISO mdoc attribute.

type

the datatype of this attribute.

identifier

the identifier of this attribute.

displayName

the name suitable for display of the attribute.

description

a description of the attribute.

mandatory

indication whether the ISO mdoc attribute is mandatory.

icon

the icon, if available.

sampleValue

a sample value for the attribute, if available.