Package dev.omnist.codec
package dev.omnist.codec
Reading and writing the
Document model as the
non-OML wire formats — JSON, YAML, TOML, and XML (omnist-spec §7.3) — including
the lossy-adjustment reporting (WriteReport) that
records when a format's constraints force a value to be adjusted on write.-
ClassDescriptionCodec for reading and writing the Omnist Document model as JSON (omnist-spec §7.3).Codec for reading and writing the Omnist Document model as TOML (omnist-spec §7.3), built on the
tomljparser.A single format-specific adjustment a codec's writer made to represent a document in a target format that cannot express it exactly, part of aWriteReport(omnist-spec §8.3.8'sformat.*diagnostic family — e.g. a dropped null, or a temporal value stringified because the format has no native temporal type).Thrown by a codec'swrite/checkpath when a document cannot be written to the target format at all (e.g.Accumulates theformat.*adjustments (omnist-spec §8.3.8) a codec's writer made while serializing a document that couldn't be represented exactly in the target format.Codec for reading and writing the Omnist Document model as XML (omnist-spec §7.3), built onjavax.xml.parsers/DOM.Codec for reading and writing the Omnist Document model as YAML (omnist-spec §7.3), built on SnakeYAML.