UML

es.weso.uml.UML
See theUML companion object
case class UML(labels: Map[ShapeLabel, NodeId], components: Map[NodeId, UMLComponent], links: List[UMLLink])

Represents a UML-like class diagram that can be serialized to PlantUML syntax

Attributes

components

associates NodeIds to UMLComponents

labels

associates ShapeLabels to NodeIds

links

list of links

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def addClass(cls: UMLClass): UML
def cnvEntry(entry: UMLEntry): String
def cnvField(field: UMLField): String

Get nodeId of a shape label

Get nodeId of a shape label

Attributes

label

shape label

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

Attributes

label

Shape label

Returns:

a pair with the updated UML diagram and the nodeId

def toFormat(options: PlantUMLOptions, format: FileFormat): IO[String]

Convert a UML diagram to some format

Convert a UML diagram to some format

Attributes

format

output format

options

plantUML options

Convert the UML diagram to JSON

Convert the UML diagram to JSON

Attributes

Returns:

JSON representation of the diagram

def toSVG(options: PlantUMLOptions): IO[String]

Converts a diagram to SVG

Converts a diagram to SVG

Attributes

options

PlantUML options

Returns:

an IO action that generates the SVG representation of the UML diagram

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product