Author Topic: Newbie questions - Strings and Collections  (Read 3831 times)

AndreasBuschka

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Newbie questions - Strings and Collections
« on: October 28, 2002, 10:45:14 am »
Hello!

I am not sure yet what the correct way of expressing Strings and Collection is regarding UML diagrams. I've started with a domain class diagramm, but the default data types for my attributes do not include Strings and Collections like the ones found in Java. What is the correct way to express these? I thought of these:

- Importing the Java main classes (java.*, javax.*) in my project from the JDK source (extremely blows up the EAP file)
- Specifying my own "String" type.

I want to generate Java code from my model at some point of the development process, so I think that I should starting using the right convention now...

Thanks for your ideas,
Andreas Buschka

Chris_Reynolds

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • Poets have been curiously silent about cheese.
    • View Profile
Re: Newbie questions - Strings and Collections
« Reply #1 on: October 28, 2002, 04:15:22 pm »
The datatypes available can be extended using menu/Reference/LanguageDataTypes.
That may be better than importing the whole of the jdk.

Chris_Reynolds

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • Poets have been curiously silent about cheese.
    • View Profile
Re: Newbie questions - Strings and Collections
« Reply #2 on: October 28, 2002, 04:25:58 pm »
Note also that you can mark an attribute as a collection on the detail tab but I'm not sure how it affects the Java generation.

AndreasBuschka

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Newbie questions - Strings and Collections
« Reply #3 on: October 30, 2002, 03:05:22 am »
Thanks for the tip with the collections, that was exactly was I was looking for ;) I have also tried the language datatypes menu you mentioned, but could not find any string type. I also do not understand how to create a correct mapping. Do you have some experience about that?