detecting UML relationships from java source code -


My program is easily run through source code and I can detect that easy relationship like implementation or legacy Where the classroom can be searched from, the class is defined, however, I have stuck something with ideas about finding other relationships, such as a union with another class or a union with another class.

So far I have tried to parse the code and where it is said to seek other methods but I am not sure about an exact code definition of these relations

Sorry if I am being ambiguous then I can try and understand better if you do not understand, tell me in the comment.

The problem is that there is no concrete definition to translate into Java class relationships, dependencies, and aggregations. You should set the rules on your own, only check them against the UML standard.

I will give the following advice:

  UML Java dependency A-> B class A reference in class B association A-> B class A reference (which can be referenced) (this recurring Examples of B or B (black diamonds) in class B structure- A-> B class A are neither examples of B or their references, either single or collective (arrays, collection) shared aggregation A- Gt; B is a array or collection in A class or at least one other B. and (blank diamond) is an example of B in reference class or such reference, either single or collective (array, collection)  

If according to the last rule, you collect two-way shared Karan receive AB, the barred . Therefore, keep it

, there is no strict definition of the association and shared aggregation, only limitations.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -