Package-level declarations

Types

Link copied to clipboard
data class AnyBasicValue<T>(value: BasicValue<T>) : BasicValue<T>

Wraps any BasicValue. To be used in situations when a Property can have multiple possible Value Types. For example de.dstulle.vkard.properties.organizational.Related

Link copied to clipboard
abstract class BasicValue<T> : Value<T>

Class to mark a Value as basic value. BasicValues are being used in StructuredValues. The StructuredValue itself is not a BasicValue to prevent recursive nesting.

Link copied to clipboard
data class BooleanValue(value: Boolean) : BasicValue<Boolean>

A Value that stores a boolean value, that can either be TRUE or FALSE. This value is not used in any property defined the RFC 6350 vCard.

Link copied to clipboard

A Text Value that consists of multiple values, with distinct meanings like the Value of N, ADR and ORG

Link copied to clipboard
abstract class StructuredValue<T : BasicValue<*>>(value: MutableList<T>) : Value<List<T>>

A Value that consists of multiple values, with distinct meanings like the Value of GENDER, CLIENTPIDMAP or StructuredTextValue

Link copied to clipboard

A Text list Value that consists of one or more values. For example as used in the Properties NICKNAME and CATEGORIES

Link copied to clipboard
data class TextValue(value: String = "") : BasicValue<String>

A Text Value that consists of only one single value. For example as used in the Properties XML, FN, TEL, EMAIL, TZ TITLE, ROLE, NOTE, PRODID, UID and KEY

Link copied to clipboard
data class UriValue(scheme: String, userinfo: String = "", host: String = "", port: String = "", path: String, query: String = "", fragment: String = "") : BasicValue<String>

A Uri Value that consists of only one single value. For example as used in the Properties SOURCE, PHOTO, TEL, IMPP, GEO, LOGO, MEMBER, RELATED, SOUND, UID, URL, KEY, FBURL, CALADRURI and CALURI

Link copied to clipboard
abstract class Value<V>

Base class for all Values a Property can have.

Functions

Link copied to clipboard
toUrl
Link copied to clipboard