Hello. I am modelling a java websocket endpoint in a class diagram. The class and methods need to be decorated with the relevant annotations (i.e. @ServerEndpoint, @OnMessage, etc…).
My questions are:
Is there a way to show the annotations in the class diagram other than using stereotypes?
Is there a way to import the necessary libraries (javax.websocket., javax.websocket.server.) based on the annotations during code generation?