Could you extend annotation in the class diagram to support having fields and methods just like classes? As well as could we get a visibility
@startuml
class Nmea0183Device {
{static} @SerialPort(9600,N,8,1)
}
class SerialPort << (@,#FF7700) >> {
+Baud : int
+Parity : ParityTypes
+DataBits: int
+StopBits: StopBitTypes
+ctor(Baud, Parity, DataBits, StopBits)
}
enum ParityTypes {
None {N}
Odd {O}
Even {E}
Mark {M}
Space {S}
}
SerialPort *-- ParityTypes
enum StopBitTypes {
None {0}
One {1}
Two {2}
OnePointFive {1.5}
}
SerialPort *-- StopBitTypes
@enduml