Package dev.omnist.oml
Class OmlWriter
java.lang.Object
dev.omnist.oml.OmlWriter
OML (Omnist Markup Language) Canonical Writer (omnist-spec §4 and §9.5).
Serializes a
Document into canonical OML text format.-
Method Summary
-
Method Details
-
write
Serializes aDocumentto canonical indented OML text (omnist-spec §4 and §9.5). Nested objects are indented by two spaces per level; edges are separated by newlines.- Parameters:
doc- the document to serialize; must not benull- Returns:
- the canonical OML text; never
null
-
writeCompact
Serializes aDocumentto compact inline OML text. Edges are separated by"; "instead of newlines and indentation is suppressed, producing output suitable for single-line display or embedding in other formats.- Parameters:
doc- the document to serialize; must not benull- Returns:
- the compact OML text; never
null
-