HighwayJson

JSON encoding of canonical Highway constructors, declarations and identity references.

Types

Link copied to clipboard
class Builder

For external producers that must encode references before the receiving model is available.

Link copied to clipboard
data class Ref(val ref: String)

A reference is encoding machinery; its target type comes from the canonical Kotlin property.

Properties

Link copied to clipboard
val mapper: JsonMapper

Functions

Link copied to clipboard
fun read(tree: JsonNode, viewpoints: Set<Viewpoint>? = null, elements: Set<String> = emptySet(), interfaceMetadata: Boolean = true, externalContextOnly: Boolean = false, external: (String) -> MetamodelEntity? = { null }): HighwayModel
fun read(file: File, viewpoints: Set<Viewpoint>? = null, elements: Set<String> = emptySet(), interfaceMetadata: Boolean = true, externalContextOnly: Boolean = false, external: (String) -> MetamodelEntity? = { null }): HighwayModel
Link copied to clipboard
fun schema(): JsonNode

Both full object definitions and generic metadata updates derive their fields from Kotlin.

Link copied to clipboard
fun tree(model: HighwayModel): ObjectNode
Link copied to clipboard
fun write(builder: HighwayJson.Builder, file: File)
fun write(model: HighwayModel, file: File)
Generated with STIG