Containment Filters

Simple class field relationship

In the simple case of class A having a field of type B, then a class diagram showing A and B shows a one-to-one field line from A.b to B.

Class field array relationship

In the case of class A having a field of type B[], then a class diagram showing A and B shows a one-to-many field line from A.b to B.

Class field list relationship

In the case of class A having a field of type List<B>, then without containment filters a class diagram showing A, B and java.util.List would show a one-to-one field line from A.b to List, and no field line from A to B. Not really what we want.

Class field containment relationship

So, the containment filters are simply a mechanism for recognizing field types which, at a design level, imply a relationship to a contained type.

Copyright © AgileJ Ltd. All rights reserved.