Book a Demo

Author Topic: How to find all undefined types?  (Read 2329 times)

Christopher_Wells

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to find all undefined types?
« on: April 08, 2005, 06:44:22 am »
On the "<classname> Attributes" dialog I can define (i.e. create) the attributes (i.e. the data members) of a class.

For example, I can define a new attribute whose Name is "m_bar" and whose Type is named "Foo".

The combo box in which I enter the Type name allows me to type in the name directly (it doesn't force me to use the combo box to select an existing, previously-defined Type from a list): and therefore I can enter a Type name such as "Foo" that hasn't been declared elsewhere in the model.

The same is also true for method parameters as it is for attributes: I can specify as a parameter a Type that hasn't been declared anywhere else.

Is there a way to find in the model these Types which are being used without having been delared? And/Or to find the classes that are using types that haven't been declared?

thomaskilian

  • Guest
Re: How to find all undefined types?
« Reply #1 on: April 10, 2005, 11:48:48 pm »
You likely have to use the automation interface. Probably this would also be possible by writing an appropriate SQL (I don't have EA here at my Mac, so I can't tell the table names :'().

Christopher_Wells

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to find all undefined types?
« Reply #2 on: April 11, 2005, 04:58:37 am »
A related issue is being able to find undefined methods, for example if I ...

* Define a method in a class
* Use the method in a sequence diagram
* Change the definition of the method in the class

... then the method used in the sequence diagram is now out-of-date or non-existent; but there's no way to tell that from looking at the sequence diagram.

I can't even use the 'Usage...'  dialog or the 'Find...' dialog to find where (e.g. in which sequence diagrams) the methods of a class are used: because the 'Usage...'  dialog isn't available for methods, and 'Find...' dialog doesn't find methods.