Book a Demo

Author Topic: Colons as separators  (Read 2896 times)

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Colons as separators
« on: October 25, 2007, 11:02:13 am »
In every example I've seen, in books and online, the 'name' and 'role' (at least, I think it's the role) in an Object (or other similar element) appears as "Fred:Manager". In EA, I can only seem to get "Fred/Manager". Am I missing something?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Colons as separators
« Reply #1 on: October 25, 2007, 02:56:01 pm »
In section 9.3.13 of the UML 2.1.1 Superstructure, the section describing StructuredClassifier, the notation for name is given as:

Quote
The namestring of a role in an instance specification obeys the following syntax:

{<name> [‘/’ <rolename>] | ‘/’ <rolename>} [‘:’ <classifiername> [‘,’ <classifiername>]*]


The text after the colon is the classifier name, not the role.
The Sparx Team
[email protected]

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: Colons as separators
« Reply #2 on: October 26, 2007, 05:54:37 am »
OK, how do I get the classifier name into the object (etc.)?

[added] OK, I've got it now (resolved in another thread).

Thank you.
« Last Edit: October 26, 2007, 06:07:04 am by frankk »