addClaim
fun addClaim(type: DocumentAttributeType, identifier: String, displayName: String, description: String, icon: Icon? = null, sampleValue: JsonElement? = null): JsonDocumentType.Builder
Add a claim to the metadata of the JSON-based Document Type.
Parameters
type
the datatype of this claim.
identifier
the identifier of this claim.
displayName
a name suitable for display of the claim.
description
a description of the claim.
icon
the icon, if available.
sampleValue
a sample value for the attribute, if available.