addDataElement
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.
Parameters
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 mDoc attribute is mandatory.
icon
the icon, if available.
sampleValue
a sample value for the attribute, if available.