Could you add the "Annotation" type in the class diagram ?

0 votes
asked Jul 15, 2013 in Wanted features by graffity2199 (200 points)
Hello,
 
I know it is quite related to Java but it would be nice to add the "Annotation" type in class diagram (don't know it this is relevant for other languages)
 
By now, we have :
 
abstract class AbstractList
abstract AbstractCollection
interface List
interface Collection
class ArrayList
enum TimeUnit
 
Could we also have (for instance) :
 
annotation SuppressWarnings
 
For instance, the following code
 
@startuml
 
abstract class AbstractList
abstract AbstractCollection
interface List
interface Collection
annotation Override
annotation SupressWarnings
 
List <|-- AbstractList
SupressWarnings <-- AbstractList
Collection <|-- AbstractCollection
 
Collection <|- List
AbstractCollection <|- AbstractList
AbstractList <|-- ArrayList
 
class ArrayList {
  Object[] elementData
  size()
}
 
enum TimeUnit {
  DAYS
  HOURS
  MINUTES
}
 
@enduml
 
could output this :
 
 
equals to
 
class Override << (@,#FF7700) >>
 
Thanks a lot

1 Answer

0 votes
answered Oct 6, 2013 by anonymous
This feature has been implemented since 7972 PlantUML version, thanks Arnaud !
...