JDev Java class diagrams - how to associate 2 classes to parent via Map?

I am using 9.0.5.1 and working on some simple Class diagrams. I have learnt how to use the @associates javadoc tag and association editor to get associations displayed between classes that use Collections. However, it seem that I cannot associate the classes used for the "key" and "value" in member Map. Only a single association per member variable appears to be supported. Is this possible?
In case the above doesn't make sense, here is the code from the class with the Map member:
* @associates <{score.ContentItem}>
* @associates <{score.ScoreConsolidator}>
protected Map descriptionMap = new HashMap();
The diagram tool only seems to recognize the last @associates tag. I have tried a few syntaxes for refering to multiple classes to no avail.
Thanks
Drew

Drew,
Your correct, we do only support one associates tag. The associates tag indicates the collection type of the association, and only the first associates tag will be read.
The best way to indicate that an association is indexed, or keyed, by a certain type is to draw a dependency between the association line and the key, or index, type.
Thanks,
Geoff

Similar Messages

  • I am trying to create a class diagram with jdeveloper but class is grey out

    i am trying to create a class diagram with jdeveloper but class is greyed out even though I downloaded the J2EE version
    I went through the following steps :
    Click the project in which you want to create a new diagram, choose File New from JDeveloper's menu, then select General Diagrams in the left pane of the New dialog.
    I have downloaded J2EE Edition Version 10.1.3.1.0.3984

    When the class diagram is disabled - does the wizard for creating a new class in the new->General also disabled?
    If it is then you are not placing your cursor on the project before you choose file->new
    (you are probably on the workspace that contains the project).

  • JDev TP3 / UML Class Diagram / How can I specify a derivative attribute?

    Hello,
    I'm trying to put derivatives (or calculated) attributes such as "age" or "price" in a class of UML diagram. In all of UML books that I've seen, a derivative attribute is represented with a "/" and the attribute's name. For example, "/age" or "/price". But in the class diagram of JDeveloper I can't put "/" in the name of attribute. So, how can I specify a derivative attribute?
    Thanks in advance,
    JVN

    Unfortunately, it is not possible to denote derived attributes in TP3. Bug 6915067 has been logged to address this in a future version.
    Thanks, Guus (JDev PM)

  • How to output the message id via mapping?

    hello
    Is there any function can output the message ID via message mapping?
    Brand

    hi brand,
    1)and this code absolutely works fine...
    <code>
    java.util.Map map = container.getTransformationParameters();
    String msgid = (String) map.get ( StreamTransformationConstants.MESSAGE_ID);
    return msgid;
    </code>
    or
    2) to retrieve your MessageID using BPM
    1) Go to your BPM. Create a new Containervariable (simple type)
    2) Insert a new Container Operation in your BPM.
    3) In target: select your container variable (simple type) that u have created in step1.
    Operation: Assign
    Expression : In the expression editor, choose interface variable (radio button)> then choose context object (radio button)> then the 6th Value in the drop down combo is your MessageID.
    Then to access this value in your message mapping directly.
    Refer to: /people/michal.krawczyk2/blog/2005/03/04/globalcontainer--in-graphical-mapping-xi to access the contier variables in message mapping.
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • How can I Create Class Diagram and save as image in Java

    Hi
    I have to make a project in java that will generate class diagram of the input class file.
    I have some knowledge of listing methods/properties of a class file in text from but don't really know how to draw a class diagram model (JBuilder 2005 such class diagram whenever a class is compiled). I have to save that class diagram in an image file as well.
    Please guide me what must be my line of action to follow. I need some suggestions on urgent basis.
    Thanx in advance
    Regards

    Hi
    My problem is that I have to construct toll like JUDE. What I need from this tool is just to simply draw the diagrams and save in an image format.
    So I need to know how to draw the diagram and save in an image file. I don't know about the drawing libraries available in Java. Kindly help me
    Regards

  • Navigation amongst class diagrams

    Does JDeveloper support the navigation amongst class diagrams? For example, I have many class diagrams and I am looking for a class diagram that contains a class. Most of the UML designers provide features to get a list of diagrams where a specific class appears on and you can select which diagram you want to work on. It seems that this feature is missing from JDeveloper. Am I right?

    I'm sorry to say that, but currently it is not possible. The UML support has been dropped by NetBeans a few years ago (after 6.7 release)Al. Since than it has been taken over by community (led by Javier Ortiz <[email protected]>) about 2-3 years back and it is been developed as community plug-in. This group is very focused on Java support. Meanwhile Javier asked me about C++ APIs couple of years ago. You may try to sync up with him to figure out there they are with C++ support.
    In Studio you may try the Call Graph feature which is not a substitution to UML by any means, however it may serve you well depending on your needs.
    Also please note that Visual-Paradigm provides a commercial UML plug-in for NetBeans: http://www.visual-paradigm.com/support/documents/vpumluserguide/2381/2384/66569_overviewandi.html
    while the IDE integration is mentioned as a feature of free community edition as well. I know for sure that VP supports C++ UML, but I do not know if that support is enabled for NetBeans and Solaris Studio.
    BR,
    Leonid.

  • How to import a package in UML Class diagram

    Hi all,
    I am new to use Sun Java Studio Enterprise 8 and trying to do a project.
    In the class diagram, I have to import java.util.Observable (for my Model)and java.util.Observer classes(for my View). How can I do this?
    When I searched the forums, I saw a post and what I understood is, one should create a java package and then util package inside the java package. Now, create Observable class and drag it into util package in the Projects window.
    If I do this, the source code generator is generating a new java.util.Observable class in a new java.util.package. But, I want to use the core java.util package.
    I appreciate any help.
    regards,
    varma.

    You know man, The first time that I tried to do this, it didnt update my diagram then I read some posts and I try to update the diagram, [[rigth-click on the project's folder then you go to Tool and select Update Model from Source]], but it caused an exception then I create another project and it worked fine, so when I update my source my diagram update at the same time, I dont know why it didnt work on the other project, but I know if the project it is not synchronized with the source it will not work rigth.
    Just try to update the diagram going in to Tool select Update Model from Source, if it generets an exception, try create another project and do the same thing from the begging.
    Remember to select Tool on the menu, that is showed when you rigth-click on the folder of the project on the File Palet.
    Great Hug man.

  • Enhancement request: Java Class Diagram show option

    Hi JDev team
    Can you log the following enhancement request for the Java Class Diagram editor please? When right clicking an existing class in the diagram, then the Show option, it would be useful to have a Dependent Elements option that will add any subclasses to the selected parent class.
    For example, say I had oracle.jbo.server.RowImpl selected, if I selected this new option it would automatically add EntityImpl and ViewRowImpl, saving me having to look at the JDoc for RowImpl to determine the subclasses then manually add the classes to the diagram.
    Thanks & regards,
    CM.

    Chris,
    This is an interesting feature. The ER tracking number for this potential feature is 6279169.
    --Ric                                                                                                                                                                                                                               

  • Enhancement request: Java Class Diagram new facilities

    Hi JDev team
    Can you log the following enhancement request for the Java Class Diagram editor please? Firstly it would be useful when selecting a class in the diagram that the Hierarchy window was synchronized and updated the class stack to show the selected item.
    Secondly it would be nice to be able to drag and drop items from the Hierarchy window into the Java Class Diagram to be included in the diagram.
    Thanks & regards,
    CM.

    Chris,
    I submitted an ER for your request. The tracking number is 6279159.
    --RiC                                                                                                                                                                           

  • Drop6: Java/Class Diagrams - associations + thumbnail isssue

    Hi JDev team
    I'm having a play with the Java/Class Diagrams in 11g Drop6 and importing existing class structures to display.
    Under an ADF BC project I've created both a Java Diagram and a Class Diagram, and added the "oracle.jbo.server.AppModuleImpl" class. I then right click on the imported class in the diagram, then Show -> Related Items, and it imports a large array of classes as expected.
    2 problems I see:
    1) Minor issue: If you layout the components using the Diagram Hierarchical Top to Bottom layout option, the thumbnail view doesn't zoom out far enough to allow you to move around the whole diagram.
    2) In the diagram, the imported elements only seem to show Generalizations (extend) and Dependencies (interfaces), yet not associations (ie. one class includes a by ref-variable handle to another class). I'm sorely missing this 3rd feature. Am I missing something to enable this? It used to do this in 10.1.3, but with the old 10.1.3 diagrammer tool. Has this feature been dropped?
    Cheers,
    CM.

    Boing.

  • Java Source Code to UML Class Diagram

    Can anyone tell me exactly which kinds of relationships may be identified for a UML CLass diagram, directly from 'static' source code..
    Note that I am developing my own case tool which will convert from java to uml..
    At the moment, I have only managed to get Inheritance and Association relationships..
    Where Association is identified by looking at the types of all variables belonging to a class (excluding method variables etc) and if the type of the variable is non-primitive, than I have deduced it is an association relationship with that class.
    Would this be the right approach?
    Secondly I have noticed in JBuilder, it models dependency relationships by getting all the Imports at the top of the java source file, is this right?? also I have read that a dependency can be modelled by the variable types in operation arguments (paremeterS ?)..
    I would also appreciate if someone could clarify the difference betweeen Composition and Aggregation for me and explain if it is possible to identify the two relationships directly from java source code..
    Last but not least, what about multiplicity ? am I right in thinking that an instance variable is 0-1, an array declaration is seen as 0-n (fixed number) and a Vector/ data collection.. is seen as 0 - * (any number)..
    Thanks for any help,
    Regards
    Tony.

    although this post is way old it could do with a decent answer.
    some guidance can be taken from JSR26: UML Mapping for EJB
    find it a www.jcp.org
    also this research paper on consistency of reverse engineering between uml tools
    http://citeseer.nj.nec.com/545406.html
    Where Association is identified by looking at the types of all variables belonging >to a class (excluding method variables etc) and if the type of the variable is >non-primitive, than I have deduced it is an association relationship with that >class.
    Would this be the right approach?Yes. You could also say that if it is a java.* type then it would also be an attribute.
    Secondly I have noticed in JBuilder, it models dependency relationships by getting >all the Imports at the top of the java source file, is this right?? also I have >read that a dependency can be modelled by the variable types in operation >arguments (paremeterS ?)..JBuilder would be consistent with JSR26, and that's how i intend to implement in ArgoUml.
    I would also appreciate if someone could clarify the difference betweeen >Composition and Aggregation for me and explain if it is possible to identify the >two relationships directly from java source code..Composition is a stronger form of ownership. the composed class is owned only by 1 class. Its lifetime is strongly linked to its owner - ie. it is not created before its owner and it is destroyed before its owner is.
    eg. leg of a table.
    Agregation is weak ownership. the owned class may be owned by several classes.
    eg. a company is owned by many shareholders.
    Last but not least, what about multiplicity ? am I right in thinking that an >instance variable is 0-1, an array declaration is seen as 0-n (fixed number) and a >Vector/ data collection.. is seen as 0 - * (any number)..sound right.
    Alex

  • Should I start with Entity Object or Java Class Diagram ??

    Hi,
    I come to J2EE / OO application development from non-oo programming world. I am still confused about what step-by-step development approach should I take ?
    Should I :
    - start with creating Entity Object from available database table ?
    - should I start with Java class diagram, followed by generating database tables, then create EO from it ?
    Could anybody please help me, what best practice step by step development approach should I take ?
    Is there any white paper / docs about this ?
    Thank you for your help,
    Krist

    Krist,
    If you are not from the OO world then you may be interested in this new site on OTN (http://otn.oracle.com/formsdesignerj2ee) There is a workshop that starts by looking at an existing datamodel and builds up from there.
    If you are starting from nothing, you can indeed start higher at the Class Model level.
    I recently started discussing data modeling on my blog (http://www.groundside.com/blog/content/SueHarper/) and there are some very good comments(feedback from readers) that may possibly be useful to you.
    If you are new to the UML modeling world, I recommend you read two very good papers by Jan Kettenis on OTN (http://www.oracle.com/technology/products/jdev/collateral/collateral10g.html) They are Getting Strted with UML Class modeling and Getting Started with UML Use Case Modeling.
    Shay pointed you to Toplink. There are a lot of resources on OTN for Toplink, including tutorials.
    Personally? I think if you have time, and if you can, start with a Class Model and perhaps a Use Case model, then you can start planning your application development from a solid base.
    Regards
    Sue Harper

  • I can not drag java class onto uml class diagram - why??

    Hi
    1. I created a new java web project
    2. I created a new uml project.
    3. I created new classes in the java web project.
    4. I created a new "class diagram" in the uml project.
    PROBLEM:
    1. When I drag one of the classes onto the class diagram screen, nothing happens. That is, when I perform the "drop"...nothing happens.
    (NOTE: when I drag a "package" to the class diagram, a box representing the java package appears... I just cant get this to work for a class(s) )
    QUESTION:
    Should I be able to drag a class (or classes) from my web project src folder onto the UML project's class diagram and have UML representations of the classes appear?

    Hi Shay
    Unfortunately, I cannot view the suggested youtube stuff at work. (I'll try to view it when I get home)
    But, in the meantime, I did kind of get things working...
    After creating the java project and uml project (and initial class diagram), I had to
    1. drag the java packages (containing the classes I wanted diagrammed) onto the root node of the UML project (i.e., located on the left side "navigation" bar). Afterward, the package appeared under the UML project....Then,
    2. One by one I had to drag the individual java classes from the java project onto the root node of the UML project (i.e,. the classes then appeared under their respective packages under the UML project) . Then,
    3. Then, finally, I could drag the java classes (listed under their respective packages under the UML project) onto the class diagram panel, where the rendered properly.
    I dont know if this is supposed to be the way to "reverse engineer" java classes to be part of a UML class diagram... But, it was the only way I found that worked... thus far, anyway.
    Thanks again for reading my post and answering so promptly.... That was much appreciated!
    s

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • How to use a method in sequence diagram from a class diagram

    Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
    thx

    Now that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same

Maybe you are looking for

  • Problems converting word in PDF, graphics

    I use Acrobat X Pro and Word 2003 SP3. Photos change their size in the PDF. If the photo-size was never changed in Word, the photos stay as they were, but if the size of an inserted photo was slightly changed in word, this photo is in the PDF in its

  • ITunes  8 constantly asking to authorize songs

    I've just upgraded to the iTunes 8 and have encountered an annoying problem. I can't play music bought from the iTunes Store. I'll click on the song to play it and it asks to authorize. I enter the account info and it says that this computer has been

  • Can't simulate Clocking Wizard in ISE 14.7

    Hi! I have developed a simple design for a VGA module where I need to produce a 40Mhz clock out of 100Mhz input for an Artix-7 (XC7A100T-CSG324) on an Digilent Nexys4 evaluation board. In order to aquire this clock I have used a Clock Wizard for a DC

  • System slow/clean installed

    Hello and thanks for taking a peek in here: I run a 27 inch mid 2010 imac w/ 2.93ghz i7 and 16gb 1333 mhz ddr3 running lion My system suddenly got a whole lot slower after a recent power outage (the system was UPSed but the UPS gave out before power

  • Scrolling and button help

    For scrolling, I don't know how to put the UI scroll bar for scrolling a movie clip. And for buttons, I need a script that can open a specific folder in a new window when I press on it.