Uses of Class
dev.omnist.codec.WriteReport
Packages that use WriteReport
Package
Description
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.The lexer and parser for OML, Omnist's canonical text format (omnist-spec §4)
— the format every other codec's input is normalized through and every
omnist format output is written in.-
Uses of WriteReport in dev.omnist.codec
Methods in dev.omnist.codec that return WriteReportModifier and TypeMethodDescriptionstatic WriteReportChecks aDocumentfor JSON-representability issues without serializing it.static WriteReportComputes what adjustmentsTomlCodec.write(Document)would make tonodewithout actually producing TOML text — useful for checking whether a document would round-trip cleanly before committing to a strict write.static WriteReportComputes what adjustmentsXmlCodec.write(Document)would make tonodewithout actually producing XML text.static WriteReportComputes what adjustmentsYamlCodec.write(Document)would make tonodewithout actually producing YAML text.WriteException.report()Returns the adjustments recorded before this exception was thrown.Methods in dev.omnist.codec with parameters of type WriteReportModifier and TypeMethodDescriptionstatic DocumentXmlCodec.read(String text, Schema schema, WriteReport report) Parses XML text into aDocument, optionally with schema guidance and a read-side diagnostic report.static DocumentXmlCodec.readWithLimits(String text, Schema schema, WriteReport report, Limits limits) Parses XML text asXmlCodec.read(String, Schema, WriteReport)does, refusing input larger thanLimits.maxInputBytes()bytes (D-23) and honouring the depth, node-count and integer-digit bounds oflimits(D-9, E-4a):document.limit.depthanddocument.limit.nodesat$; the digit bound applies to an integer pretyped fromschema, at the Document path of the leaf.static StringJsonCodec.write(Document node, Integer indent, boolean strict, WriteReport report) Serializes aDocumentto JSON, optionally indented and in strict mode.static StringTomlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto TOML text.static StringXmlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto XML text.static StringYamlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto YAML text.Constructors in dev.omnist.codec with parameters of type WriteReportModifierConstructorDescriptionWriteException(String message, WriteReport report) Constructs a write exception carrying the adjustments that led to it (typically used in strict mode, where any adjustment is itself the failure). -
Uses of WriteReport in dev.omnist.oml
Methods in dev.omnist.oml with parameters of type WriteReportModifier and TypeMethodDescriptionstatic StringOmlWriter.write(Document doc, WriteReport report) LikeOmlWriter.write(Document), and records inreportevery value the OML grammar cannot hold exactly: a time or datetime whose fraction needs more than six digits (the grammar is1*6DIGIT) is written as a quoted string holding every digit, with aformat.temporal-stringifiedadjustment (E-37: a value is never altered).static StringOmlWriter.writeCompact(Document doc, WriteReport report) LikeOmlWriter.writeCompact(Document), recording the temporal adjustments inreportasOmlWriter.write(Document, WriteReport)does.