addJsonAttribute

fun addJsonAttribute(type: DocumentAttributeType, identifier: String, displayName: String, description: String, icon: Icon? = null, sampleValue: JsonElement? = null): DocumentType.Builder

Add an attribute for JSON-based only.

Parameters

type

the datatype of this attribute.

identifier

the identifier of this attribute using . to separate path components, e.g. age_equal_or_over.18.

displayName

a name suitable for display of the attribute.

description

a description of the attribute.

icon

the icon, if available.

sampleValue

a sample value for the attribute, if available.