Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7800405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:37:32+00:00 2026-06-02T00:37:32+00:00

I am using Sparx EA (current version) to reverse engineer a simple little test

  • 0

I am using Sparx EA (current version) to reverse engineer a simple little test solution to a class diagram (C# if it matters). There are just two classes. Test1 and Test2. Test1 has a property;

public List<Test2> test2list { get; set; }

Based on that property, I would expect EA to infer that the two classes are related and update the diagrams accordingly, but it does not.. I just get two classes and have to manually link them..

Is there some way to get EA to recognize the relationships?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:37:35+00:00Added an answer on June 2, 2026 at 12:37 am

    First off, I think the discussion in the question comments highlights the underlying problem: there is no consensus as to which relationships in UML correspond to which constructs in implementation language X.

    Put another way, there are no standardized UML profiles for the most common implementation languages. (There is a very old one for Java, but it’s obsolete.) I consider this one of the great failings of UML, not an issue in any specific tool.

    To answer the question: no, EA does not infer dependencies or usages in this case. But the problem here is deeper: EA doesn’t resolve template types correctly.

    Expanding on your example, consider these four cases:

    public List<Test2> test2ListProp { get; set; }
    public List<Test2> test2ListAttr;
    public Test2 test2SingleProp { get; set; }
    public Test2 test2SingleAttr;
    

    EA recognizes the properties, which it represents as operations — not attributes. It does not create any connectors for these. The non-property ones, on the other hand, are represented in the model both by attributes and by directed associations. Attibutes and directed associations used this way are semantically equivalent in UML, but the same does not hold for operations.

    If you now go into the model and rename Test2, you will see that EA correctly updates the names of the non-list types both in the attribute and the property, but that the others retain their List<Test2> types. So this is where it breaks; the List<Test2> type is simply a string, not a proper model reference.

    You should also note that the directed association test2ListAttr has a multiplicity 0..*. This is because EA has correctly inferred that this attribute is in fact a list. This inference can be controlled in Tools – Options – C# – Additional Collection Classes.

    If you now go and delete List<#TYPE#>; from that option, then create a template class List in your model and redo the import (probably a good idea to clear the model first in this case), EA will change its representation of test2ListAttr. Instead of creating a 0..* directed association to Test2, it will create a template binding to your List class, specifying Test2 as the actual parameter.

    This is a proper model reference and if you change the name of Test2 the binding will be updated (you may need to reload the diagram) — in other words, this is a correct representation and if you were to generate code out of this model, it will be correct. In fact, with the options set this way and the List class pre-created, the behaviour is correct for three out of our four cases above.

    However, this doesn’t solve the problem for properties whose types are template classes. Because EA represents them as operations, it can’t draw the directed associations for them, and because of that, it won’t occur to it to draw template bindings for them either. I should report this as a bug if I were you.

    On a related note, you can get EA to create dependencies for operation returns and parameter types (but not for template type usage). This is set in Tools – Options – Source Code Engineering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to make a UML class diagram for a project. I used Sparx
I use Enterprise Architect from Sparx Systems for reverse-engineering URL class diagrams from my
in my spare time I'm engaged with writing a little game using Microsofts XNA
Using ruby(1.8.7) , rails(2.3.8) , rspec(1.3.1) and rspec-rails(1.3.3) how do I test a method
Setup I am using Sparx Systems Enterprise Architect Professional edition 7.5 and MS PowerPoint.
Is their a solution to generate an email template using an ASP.NET MVC View
I am using the SparkViewEngine with ASP.NET MVC 1.0 and was wondering if there
I am using Sparx Systems Enterprise Architect 7 Professional and I can not find
I just ran into trouble with the AreaDescriptionFilter of Spark using MVC 2 Beta.
I'm using MVC3 and Spark. I need to add a class to a LI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.