Data

org.finos.morphir.datamodel.Data$
See theData companion trait
object Data

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Data.type

Members list

Type members

Classlikes

case class Aliased(data: Data, shape: Alias) extends Data

Represents data that lives beind a typedef. For example,

Represents data that lives beind a typedef. For example,

 type Label = String
 val x: Label = "xyz"

Should would be represented as

 Aliased(Data.String("xyz"), schema = Schema.Alias("Label", Data.String))

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
sealed trait Basic[+A] extends Data

Attributes

Supertypes
trait Data
trait Writable
class Object
trait Matchable
class Any
Known subtypes
class Boolean
class Byte
class Char
class Decimal
class Int16
class Int32
class Integer
class LocalDate
class LocalTime
class Month
class String
object Unit.type
Show all
case class Boolean(value: Boolean) extends Basic[Boolean]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Boolean]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Byte(value: Byte) extends Basic[Byte]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Byte]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Case(value: Data, enumCase: Case, shape: Enum)

See notes on Concept.Enum for information on how this type is modelled

See notes on Concept.Enum for information on how this type is modelled

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Char(value: Char) extends Basic[Char]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Char]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Decimal(value: BigDecimal) extends Basic[BigDecimal]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[BigDecimal]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Int16(value: Short) extends Basic[Short]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Short]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Int32(value: Int) extends Basic[Int]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Int]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Integer(value: BigInt) extends Basic[BigInt]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[BigInt]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class List extends Data

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
object List

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
List.type
case class LocalDate(value: LocalDate) extends Basic[LocalDate]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[LocalDate]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class LocalTime(value: LocalTime) extends Basic[LocalTime]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[LocalTime]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Month(value: Int) extends Basic[Int]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[Int]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Optional(data: Data) extends Data

Equlvalent to ELM Optional or Scala Option

Equlvalent to ELM Optional or Scala Option

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Record(values: List[(Label, Data)]) extends Data

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class String(value: String) extends Basic[String]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Basic[String]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Tuple(values: List[Data]) extends Data

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
case class Union(value: Data, unionSchema: Union)

A instance of a non-discrimiated union-type such as a Scala 3

A instance of a non-discrimiated union-type such as a Scala 3

 type MyUnion = Int | String

Would be defined as

 Union(Schema.Int, Schema.String)

A value of it would defined as:

 Data.Union(Data.Int(123), Union(Schema.Int, Schema.String))

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Unit extends Basic[Unit]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Basic[Unit]
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all
Self type
Unit.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def Int(value: Int): Int32

Concrete fields

val False: Data
val True: Data