case class UML(labels: Map[ShapeLabel, NodeId], components: Map[NodeId, UMLComponent], links: List[UMLLink]) extends Product with Serializable
Represents a UML-like class diagram that can be serialized to PlantUML syntax
- labels
associates ShapeLabels to NodeIds
- components
associates NodeIds to UMLComponents
- links
list of links
- Alphabetic
- By Inheritance
- UML
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UML(labels: Map[ShapeLabel, NodeId], components: Map[NodeId, UMLComponent], links: List[UMLLink])
- labels
associates ShapeLabels to NodeIds
- components
associates NodeIds to UMLComponents
- links
list of links
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
- def addClass(cls: UMLClass): UML
- def addLink(link: UMLLink): UML
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def cnvClass(cls: UMLClass): String
- def cnvComponent(c: UMLComponent): String
- def cnvEntry(entry: UMLEntry): String
- def cnvExtends(c: UMLComponent): String
- def cnvField(field: UMLField): String
- def cnvFieldExpr(fe: FieldExpr): String
- def cnvLink(link: UMLLink): String
- def cnvValueConstraint(vc: ValueConstraint): String
- val components: Map[NodeId, UMLComponent]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getId(label: ShapeLabel): Option[NodeId]
Get nodeId of a shape label
Get nodeId of a shape label
- label
shape label
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: Map[ShapeLabel, NodeId]
- val links: List[UMLLink]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newLabel(label: ShapeLabel): (UML, NodeId)
Adds a label to a UML diagram If exists, return the existing nodeId
Adds a label to a UML diagram If exists, return the existing nodeId
- label
Shape label
- returns
a pair with the updated UML diagram and the nodeId
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toFormat(options: PlantUMLOptions, format: FileFormat): IO[String]
Convert a UML diagram to some format
Convert a UML diagram to some format
- options
plantUML options
- format
output format
- def toJson: Json
Convert the UML diagram to JSON
Convert the UML diagram to JSON
- returns
JSON representation of the diagram
- def toPlantUML(options: PlantUMLOptions): String
- def toSVG(options: PlantUMLOptions): IO[String]
Converts a diagram to SVG
Converts a diagram to SVG
- options
PlantUML options
- returns
an IO action that generates the SVG representation of the UML diagram
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])