Uses of Interface
dev.omnist.document.Document
Packages that use Document
Package
Description
The normative Schema Algebra: operations that reason about and transform an
OSD
Schema itself, rather than the documents it
describes — normalize, prune, extract, lint,
compatible_with, equivalent, is_empty, and structural
inference from sample documents (omnist-spec §6).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.Omnist document data model core package.
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.Validating and materializing documents against an OSD schema: checking a
Document conforms to a Schema
and reporting diagnostics when it doesn't (omnist-spec §3.6), and the
materialization pass that produces a schema-conformant document from one
that's structurally compatible but not yet exact (§6.3, §8.2).-
Uses of Document in dev.omnist.algebra
Method parameters in dev.omnist.algebra with type arguments of type DocumentModifier and TypeMethodDescriptionstatic SchemaInfers a schema from a list of sample documents (§6.10), rooted at"Root"withany-fallback disabled.static SchemaInfers a schema from a list of sample documents (§6.10).static InferResultSchemaAlgebra.inferWithReport(List<Document> samples, String rootName, boolean allowAny) Infers a schema from a list of sample documents (§6.10), returning both the schema and a report of every field that fell back toanybecause its samples mixed incompatible scalar kinds. -
Uses of Document in dev.omnist.codec
Methods in dev.omnist.codec that return DocumentModifier and TypeMethodDescriptionstatic DocumentParses JSON text into aDocumentwithout schema guidance.static DocumentParses JSON text into aDocument.static DocumentParses TOML text into aDocumentwithout schema guidance.static DocumentParses TOML text into aDocument.static DocumentParses XML text into aDocumentwithout schema guidance.static DocumentParses XML text into aDocument, optionally with schema guidance.static DocumentParses YAML text into aDocumentwithout schema guidance.static DocumentParses YAML text into aDocument.Methods in dev.omnist.codec with parameters of type DocumentModifier 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.static StringSerializes aDocumentto compact JSON with no indentation.static StringJsonCodec.write(Document node, Integer indent, boolean strict, WriteReport report) Serializes aDocumentto JSON, optionally indented and in strict mode.static StringSerializes aDocumentto TOML text, non-strict (dropping unrepresentable leaves rather than throwing).static StringTomlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto TOML text.static StringSerializes aDocumentto XML text, non-strict (dropping/sanitizing unrepresentable content rather than throwing).static StringXmlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto XML text.static StringSerializes aDocumentto YAML text, non-strict (applying adjustments rather than throwing).static StringYamlCodec.write(Document node, boolean strict, WriteReport report) Serializes aDocumentto YAML text. -
Uses of Document in dev.omnist.document
Subinterfaces of Document in dev.omnist.documentModifier and TypeInterfaceDescriptioninterfaceRepresents a scalar value in the Omnist Document model (omnist-spec §2.2.1).interfaceRepresents a value in the Document model (omnist-spec §2.2).Classes in dev.omnist.document that implement DocumentModifier and TypeClassDescriptionfinal recordA node in the Document model, consisting of an ordered list of labeled edges (omnist-spec §2.1/§2.2).static final recordA scalar holding a boolean value (omnist-spec §2.2.1, typeboolean).static final recordA scalar holding a calendar date without a time component (omnist-spec §2.2.1, typedate).static final recordA scalar holding a date-time with an optional UTC offset (omnist-spec §2.2.1, typedatetime).static final recordA scalar holding an arbitrary-precision integer value (omnist-spec §2.2.1, typeinteger).static final recordA scalar holding an IEEE-754 64-bit floating-point number (omnist-spec §2.2.1, typenumber).static final recordA scalar holding a Unicode text value (omnist-spec §2.2.1, typestring).static final recordA scalar holding a time-of-day with an optional UTC offset (omnist-spec §2.2.1, typetime).static final recordRepresents the null value in the Document model (omnist-spec §2.2.1). -
Uses of Document in dev.omnist.oml
Methods in dev.omnist.oml that return DocumentModifier and TypeMethodDescriptionOmlReader.parseDocument()Parses the token stream into a top-levelDocument.static DocumentParses OML text into aDocumentusingLimits.DEFAULTsafety limits.static DocumentParses OML text into aDocumentusing caller-supplied safety limits.Methods in dev.omnist.oml with parameters of type Document -
Uses of Document in dev.omnist.validation
Methods in dev.omnist.validation that return DocumentModifier and TypeMethodDescriptionstatic DocumentMaterializer.materialize(Document node, Schema schema) Applies schema-driven coercion tonode, returning a fully-typedDocument.Methods in dev.omnist.validation with parameters of type DocumentModifier and TypeMethodDescriptionstatic DocumentMaterializer.materialize(Document node, Schema schema) Applies schema-driven coercion tonode, returning a fully-typedDocument.static ValidationResultValidates a Document against a Schema.