case class MantikHeader[T <: MantikDefinition](definition: T, metaJson: MetaJson, header: MantikHeaderMeta) extends Product with Serializable
A MantikHeader file. Contains one Mantik Definition together with it's JSON representation.
- definition
the base definition of the Mantik Item
- metaJson
the JSON source of the item and it's meta variables
- header
common optional meta fields of a MantikHeader (e.g. Name, Version, ...) Note: MetaJson and MantikHeaderMeta both have meta in their name, but are completely different things.
- Alphabetic
- By Inheritance
- MantikHeader
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MantikHeader(definition: T, metaJson: MetaJson, header: MantikHeaderMeta)
- definition
the base definition of the Mantik Item
- metaJson
the JSON source of the item and it's meta variables
- header
common optional meta fields of a MantikHeader (e.g. Name, Version, ...) Note: MetaJson and MantikHeaderMeta both have meta in their name, but are completely different things.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cast[T <: MantikDefinition](implicit ct: ClassTag[T]): Either[MantikException, MantikHeader[T]]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val definition: T
-
def
definitionAs[T <: MantikDefinition](implicit ct: ClassTag[T]): Either[MantikException, T]
Returns the definition, if applicable.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val header: MantikHeaderMeta
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metaJson: MetaJson
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toJson: String
Returns Json code.
-
def
toJsonValue: Json
Returns the json value (before converting to string)
-
def
toString(): String
- Definition Classes
- MantikHeader → AnyRef → Any
-
def
toYaml: String
Returns Yaml code
-
def
violations: Seq[String]
Return violations (note: cannot spot bridge-related violations)
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withMantikHeaderMeta(meta: MantikHeaderMeta): MantikHeader[T]
Update Meta values of the Mantik Header.
Update Meta values of the Mantik Header. (Updates the MetaJson accordingly)
-
def
withMetaValues(values: (String, SingleElementBundle)*): MantikHeader[T]
Update Meta Variable Values
Update Meta Variable Values
- Annotations
- @throws( ... )