java - How to express the relationship between Factory or Helper class and the objects it can generate with UML class diagram -


utility/helper , factory classes still used in core java. instance, java.util.collections, java.nio.file.files utility classes, java.nio.files.filesystems , java.nio.files.paths factory classes static factory methods.

my question how make use of uml class diagram express relationship between these factory or utility/helper classes , objects can generate?

if class uses class connect dashed line arrow. saying uses means class has declared class b inside method, parameter or calls statically.

class {     public void test(b b) {      } } 

or

class {     public void test() {          b b = ...     } } 

or

class {     public void test() {         b.teststaticmethod();     } } 

if class depends on class connect line arrow. saying depends means class has class b private member inside.

class {     private b b; } 

with knowledge can model yourself.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -