I have two classes, but don't what kind of relation i should use. I have a class Document with a lot properties and no methods. The second class is what i called the DocumentFact (Fact - Factory). This class contains different methods which returns a collection of Document objects.
So, the Document class doesn't know anything about the DocumentFact class because it has nothing to do with it. On the other hand, DocumentFact creates multiple Document objects. What kind of UML relation is this? I was thinking something like this:
-------------- ------------
|DocumentFact| -------> | Document |
-------------- 2.* ------------
Or:
-------------- ------------
|DocumentFact| ------- []| Document | // Composition
-------------- ------------
What do you think?