class MdocField : DigitalCredentialField


A property of a MdocEntry.

Summary

Public constructors

MdocField(
    namespace: String,
    identifier: String,
    fieldValue: Any?,
    fieldDisplayPropertySet: Set<FieldDisplayProperties>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Any?

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be true; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

String

the identifier of this field within the namespace, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21"

String

the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1"

Public constructors

MdocField

MdocField(
    namespace: String,
    identifier: String,
    fieldValue: Any?,
    fieldDisplayPropertySet: Set<FieldDisplayProperties>
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

fieldValue

Added in 1.0.0-alpha02
val fieldValueAny?

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be true; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

identifier

Added in 1.0.0-alpha02
val identifierString

the identifier of this field within the namespace, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21"

namespace

Added in 1.0.0-alpha02
val namespaceString

the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1"