public final class MdocField extends DigitalCredentialField


A property of a MdocEntry.

Summary

Public constructors

MdocField(
    @NonNull String namespace,
    @NonNull String identifier,
    Object fieldValue,
    @NonNull Set<@NonNull FieldDisplayProperties> fieldDisplayPropertySet
)

Public methods

boolean
equals(Object other)
final Object

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

final @NonNull 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"

final @NonNull 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"

int

Public constructors

MdocField

public MdocField(
    @NonNull String namespace,
    @NonNull String identifier,
    Object fieldValue,
    @NonNull Set<@NonNull FieldDisplayProperties> fieldDisplayPropertySet
)

Public methods

equals

public boolean equals(Object other)

getFieldValue

Added in 1.0.0-alpha02
public final Object getFieldValue()

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

getIdentifier

Added in 1.0.0-alpha02
public final @NonNull String getIdentifier()

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"

getNamespace

Added in 1.0.0-alpha02
public final @NonNull String getNamespace()

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"

hashCode

public int hashCode()