Union

org.finos.morphir.datamodel.Data.Union
case class Union(value: Data, shape: Union) extends Data

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Data
trait Writable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
Writable
def getName: Option[FQName]

Attributes

Inherited from:
Data
def getNameString: Option[String]

Attributes

Inherited from:
Data
def httpContentType: Option[String]

Attributes

Inherited from:
Writable
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toStringPretty(color: Boolean, detailLevel: DetailLevel): String

Attributes

Inherited from:
Data
def toStringPretty: String

Attributes

Inherited from:
Data
def writeBytesTo(out: OutputStream): Unit

Attributes

Inherited from:
Data