Property

abstract class Property<V : Value<*>>(val value: V, var group: String = "")

This class serves as Parent for all Properties of a vCard as described in RFC 6350 Section 6

The Properties BEGIN and END are not represented by a Property class, because each of them has to appear exactly once per card. Therefore, the possibility to add, alter or remove those properties would not be necessary.

All Properties have a name, a value and a group. The name is bound to the property class itself and the value stores the actual information in various formats.

The group is optional prefix of the property to connect related properties. The only significance of the group is a convention that all properties of the same group should be shown together when displayed as described in RFC 6350 3.3.

Inheritors

Constructors

Link copied to clipboard
constructor(value: V, group: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val name: String
Link copied to clipboard
Link copied to clipboard
val pref: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: V
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this Property.

Link copied to clipboard
fun group(name: String): Property<V>
Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the Property.

Link copied to clipboard
open fun mergeWith(other: Property<*>)
Link copied to clipboard
fun parameter(parameter: Parameter<*>): Property<V>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Returns a formatted string of this Property according to RFC 6350 with group name and values.