-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
27 changes: 18 additions & 9 deletions
27
...-plantuml/src/main/scala/com/htmlism/temporaldiagrams/plantuml/sequence/Participant.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
package com.htmlism.temporaldiagrams.plantuml.sequence | ||
|
||
sealed trait Participant | ||
case class Participant( | ||
id: String, | ||
shape: Participant.Shape = Participant.Shape.Default, | ||
name: Option[String] = None, | ||
order: Option[Int] = None, | ||
color: Option[String] = None | ||
) | ||
|
||
object Participant: | ||
case class Basic(name: String) extends Participant | ||
case class Actor(name: String) extends Participant | ||
case class Boundary(name: String) extends Participant | ||
case class Control(name: String) extends Participant | ||
case class Entity(name: String) extends Participant | ||
case class Database(name: String) extends Participant | ||
case class Collections(name: String) extends Participant | ||
case class Queue(name: String) extends Participant | ||
enum Shape: | ||
case Default | ||
case Actor | ||
case Boundary | ||
case Control | ||
case Entity | ||
case Database | ||
case Collections | ||
case Queue | ||
|
||
case class MultiLine(id: String, xs: List[String], order: Option[Int] = None) |