Union

org.finos.morphir.datamodel.Concept.Union
case class Union(cases: List[Concept]) extends Concept

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

 type MyUnion = Int | String

Would be defined as

 Union(Schema.Int, Schema.String)

Attributes

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

Members list

Value members

Inherited methods

def collect[T](p: PartialFunction[Concept, T]): Chunk[T]

Attributes

Inherited from:
Concept
def collectAll: Chunk[Concept]

Attributes

Inherited from:
Concept
def getName: Option[FQName]

Attributes

Inherited from:
Concept
def getNameString: Option[String]

Attributes

Inherited from:
Concept
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toMorphirElm: String

Attributes

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

Attributes

Inherited from:
Concept
def toStringPretty: String

Attributes

Inherited from:
Concept
def writeMorphirElmFiles(path: Path): ZIO[Any, Throwable, Unit]

Attributes

Inherited from:
Concept