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.-
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 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).