Topic
  • 2 replies
  • Latest Post - ‏2006-04-19T13:46:57Z by SystemAdmin
SystemAdmin
SystemAdmin
14225 Posts

Pinned topic typedef string

‏2006-04-19T10:15:13Z |
Hi all,
Quick question, how do you set up teh CORBA typedef types in RSD, I set the profiles of the project to include the CORBA stuff but can't get the ULM-to-CORBA transformer to output what I want i.e. typedef string DName (also the properties for the proerties for the CORBATypedef steeotype has required == false which I cant change either). Any suggestions?
Thanks,
/Paul.
Updated on 2006-04-19T13:46:57Z at 2006-04-19T13:46:57Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    14225 Posts

    Re: typedef string

    ‏2006-04-19T10:51:27Z  
    Got it, added the DName class to the list of CORBA primitive types and created a Substitution relationship from it to 'string'.
  • SystemAdmin
    SystemAdmin
    14225 Posts

    Re:typedef string

    ‏2006-04-19T13:46:57Z  
    To get "typedef string DName" in your IDL, you will have to create a new
    UML class named "DName", apply the CORBATypedef stereotype on it, and then
    draw substitution relationship from this class "DName" to the primitive
    type "string".

    To get the string primitive type visible on a class diagram surface, you
    have a couple of ways. If you had created a new UML Model based on the
    CORBA Model template (by selecting New > UML Model, and then selecting the
    "CORBA Template Model" instead of the default Blank Model in the New UML
    Model wizard), then you will have the shortcuts to the CORBA primitive
    types in a class diagram. You could copy the string primitive type from
    here to your diagram. If you have not created your model based on a CORBA
    Template Model, then you could get the string primitive type displayed on
    your diagram surface by dragging out an attribute of string type from
    within its class to the diagram surface.

    Hope this helps.

    Thanks,
    Subbu
    owner-dev-tools@lists.us.ibm.com wrote on 04/19/2006 03:45:13 PM:

    > Hi all,
    > Quick question, how do you set up teh CORBA typedef types in
    > RSD, I set the profiles of the project to include the CORBA stuff
    > but can't get the ULM-to-CORBA transformer to output what I want i.
    > e. typedef string DName (also the properties for the proerties for
    > the CORBATypedef steeotype has required == false which I cant
    > change either). Any suggestions?
    > Thanks,
    > /Paul.
    > <============================================================
    > To unsubscribe, send email to
    > majordomo@lists.us.ibm.com and put these words in the
    > message body: unsubscribe dev-tools
    > ============================================================>
    http://att1.html