NameSpacedData
Key/value pairs, organized by name space.
This class implements a data model which consists of a series of name spaces (identified by a string such as org.iso.18013.5.1) where each name space contains a number of key/value pairs where keys are strings and values are CBOR values.
While this happens to be similar to the mDL/MDOC data model used in ISO/IEC 18013-5:2021, it's flexible enough to be used to store document data for any kind of document.
This type is immutable.
Types
Functions
Encodes the given NameSpacedData as CBOR.
Gets the raw CBOR for a data element.
Like .getDataElement but decodes the CBOR as a boolean.
Like .getDataElement but decodes the CBOR as a byte string.
Gets all data elements in a given namespace.
Like .getDataElement but decodes the CBOR as a number.
Like .getDataElement but decodes the CBOR as a string.
Checks if there's a value for a given data element.