How can I retrieve all the file references associated with a
model element? I know i can retrieve Tagged Values and assume
there must be a method available to retrieve the references.
Hello, long ago, but did you find a solution?
Regards
Dieter
Hi Dieter,
Thank you for your inquiry. I have forwarded your question to our team for further research. Once I have an answer, I will let you know.
Best regards,
Jick Yeung
Hi Dieter,
The following code lists the file references added to a use case. Please try:
IReference[] references = useCase.toReferenceArray();
for (IReference reference : references) {
if (reference.getType() == IReference.TYPE_FILE) {
// here are the FILE reference(s)
}
}
Best regards,
Jick Yeung
Hi Jick,
thanks for your reply.
I solved it by:
IReference[] alreadyExistingReferences = ((IArchiMateApplicationComponent) existingApplicationComponent).toReferenceArray();
ArrayList <ArrayList > existingReferencedObject = new ArrayList <ArrayList >();
Hi dgoebel,
I am glad to know that the problem is solved. Feel free to contact us again if you have any other questions.
Best regards,
Jick Yeung