property

fun property(property: Property<*>): VCard

Adds the given property to the vCard.

A Property has a cardinality which indicates the number of properties allowed per vCard. The majority of the Properties may be present one or more times.

The Property N may be present only one time and the Property FN must be present, but is allowed more than once.

If the Property already exists the given property is merged into the already existing property of the vCard.

the method can also be chained

val zaphod = VCard("Zaphod Beeblebrox").property(N("Beeblebrox", "Zaphod"))
zaphod.set(N(honorificPrefix = "President of the Galaxy"))
zaphod.set(N(honorificPrefix = "President of the Galaxy (formerly)"))

Parameters

property

the property to be added or merged if the vCard already has such a property