Underlining in class diagrams

Can anyone please explain the following?
1) I have a class diagram where two of the three operations are underlined. The third operation is not underlined.
2) In a second class diagram, all four attributes are underlined. None of the operations are underlined.
(In the BankAccount class diagram in the tutorial, none of the attributes or operations are underlined.)

From the IDE Help:
http://www.netbeans.org/source/browse/*checkout*/uml/core/javahelp/org/netbeans/modules/uml/docs/basics/Attic/diagram_types_class.html?rev=1.1.2.2
* Class. If the class type is abstract, the class name is displayed in italics.
* Attributes. If an attribute is static (scope = class), the attribute name is underlined. If the attribute scope equals instance, the attribute name is not underlined.
* Operations. If the operation type is abstract, the operation name is displayed in italics. If the property of an operation is static, the operation name is not italicized.
Is the documentation here incomplete?

Similar Messages

  • Error during creating a new class diagram

    Hi everbody,
    I'm using JDeveloper 10.1.3.3.0 with ADF Faces and Toplink. I'm exposing to an error message in JDeveloper while creating a new class diagram. The error message is shown in dialog and saying "The name of the element can not be set to 'package name' as another element has got the same name in the package". I have controlled the name of the new class diagram. The name is unique in the package. Also I'm creating this new file in the package "tr.com.bilisim.class_diagram" and details part of this error message in dialog also says
    "BME-02002 : The name of the element can not be set to 'class_diagram' as another element has got the same name in the package"
    "BME-02002 : The name of the element can not be set to 'bilisim as another element has got the same name in the package"
    "BME-02002 : The name of the element can not be set to 'com' as another element has got the same name in the package"
    "BME-02002 : The name of the element can not be set to 'tr' as another element has got the same name in the package"
    As I understand from the error message, during creating a new class diagram from 'new file dialog' also tries to create the directories in relevant package (tr.com.bilisim.class_diagram).
    How can I solve this problem? Please urgent help!
    best regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    -repost
    please urgent
    --barisk                                                                                                                                                                                                                           

  • Using a class diagram

    I am having problems getting my program to work. And would be grateful of any help.
    I had to follow the following class diagram:
    http://i254.photobucket.com/albums/hh105/jay_pesci/screenshot.jpg
    I have the following source code:
    Account.java
    // File: Account.java
    class Account
        private double balance;
        Account( double  b ) //-double:balance
            balance = b;
        public double getBalance()
            return balance;
    public void deposit(double val)
    Deposit ( double d)//-double:val
         val= d;
    public void withdraw()
    TestAccount.java
    // File: TestAccount.java
    class AccountTest
       public static void main(String [] arg)
    account one = new account (1300.0F); //has value
    account two = new account (); // no value - balance is zeroAnd my task is:
    Using the following class diagram. The method main() should instantiate two Account objects, one by use of a no-argument constructor which initialises the balance to 0.0 and another by use of a second constructor which receives 1500.00 at creation. Both objects should then make at least one call each to withdraw and deposit money using arbitrary amounts of your choice, with main() printing the balance of each to screen via calls to getBalance() using System.out following each transaction.

    Ok, you described the requirements and posted some code (using the code-tag, thanks for getting that right!).
    What's missing from your posting is the question.
    Where do you have a problem now?
    Here are some problems I see:
    * you are missing the braces of main (opening brace "{" after the argument list and a closing brace "}" after the last statement
    * you are missing the closing brace of the class TestAccount
    * you reference a class "account" in TestAccount and the real class is called "Account" (Java is case sensitive)
    * you seem to be confused regarding the declaration of deposit() (what should the line beginning with "Deposit" mean?)
    I think you need to learn the basics first. Take a look at the tutorials:
    http://java.sun.com/docs/books/tutorial/
    When you've learned the basics (syntax, defining classes, instantiating and using objects), then the requirements aren't too hard.

  • 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

  • Abstract Class and polymorphism - class diagram

    Hi,
    ]Im trying to draw a class diagram for my overall system but im not too sure how to deal with classes derived from abstract classes. I'll explain my problem using the classic shape inheritance senario...
    myClass has a member of type Shape, but when the program is running shape gets instantiated to a circle, square or triangle for example -
    Shape s = new circle();
    since they are shapes. But at no stage is the class Shape instantiated.
    I then call things like s.Area();
    On my class diagram should there be any lines going from myClass directly to circle or triangle, or should a line just be joining myClass to Shape class?
    BTW - is s.Area() polymorphism?
    Thanks,
    Conor.

    Sorry, my drawing did not display very well.
    If you have MyClass, and it has a class variable of type Shape, and the class is responsible for creating MyClass, use Composition on your UML diagram to link Shape and MyClass.
    If you have MyClass, and it has a class variable of type Shape, and the class is created elsewhere, use Aggregation on your UML diagram to link Shape and MyClass.
    If you have MyClass, and it is used in method signatures, but it is not a class variable, use Depedency on your UML diagram to link Shape and MyClass. The arrow will point to Shape.
    Shape and instances of Circle, Triangle, Square, etc. will be linked using a Generalization on your UML diagram. The arrow will always point to Shape.
    Anything that is abstract (class, method, variable, etc.) should be italicized. Concrete items (same list) should be formatted normally.
    BTW, the distinction between Composition, Aggregation and Dependency will vary from project to project or class to class. It's a gray area. Just be consistent or follow whatever guidelines have been established.
    - Saish

  • Extending the UML class diagrams with JDeveloper Extensions SDK?

    Hello,
    I studied the JDeveloper Extension SDK docs, but couldn't figure out how to write extensions that support UML Diagrams.
    What I would like to do, is to pin a different data model under the class diagram view.
    Well if you can't do that. In the worst case, my extension would register with a regular class diagram and listen to its events and and refuse particular changes. It would also create or use an empty class diagram and fill in the classes and associations in it. (this is less clean but I could live with it).
    Thanks in advance for all your suggestions.
    Slawek

    By definition you can change classes through the model so I guess the problem here is that the model cannot apply updates to something that it is pointing to the the compiled version of.

  • Jato 1.2 UML Class Diagrams

    Hi All,
    I have put together some UML class diagrams for JATO 1.2. You may find them
    useful. Please let me know if you spot any errors.
    Regards,
    Dennis Parrott.
    Dennis Parrott
    Senior Consultant
    iPlanet Professional Services
    Sun Microsystems Limited
    Guillemont Park
    Camberley Mobile: +44 (0)7765 221938
    GU17 9QG Email : dparrott@i...
    iPlanet
    e-commerce solutions
    www.iplanet.com
    [Non-text portions of this message have been removed]

    Hi Dennis--
    Only we can post files for the group. We'll be happy to do so, or if you
    would rather host a public site for them, we can post a link in the group.
    (Looking forward to seeing the diagrams.)
    Todd
    ----- Original Message -----
    From: "Dennis Parrott" <dparrott@i...>
    Sent: Monday, December 17, 2001 7:41 AM
    Subject: RE: [iPlanet-JATO] Jato 1.2 UML Class Diagrams
    Note the deliberate mistake - the document was not included - actually it
    was removed - How can I publish this to the group?
    Dennis Parrott[PARA]Senior Consultant[PARA]iPlanet Professional
    Services[PARA]Sun Microsystems Limited[NL]Guillemont Park[NL]Camberley
    Mobile: +44 (0)7765 221938[NL]GU17 9QG Email :
    dparrott@i... iPlanet [PARA]e-commerce solutions
    [PARA]www.iplanet.com
    -----Original Message-----
    From: Dennis Parrott [mailto:<a href="/group/SunONE-JATO/post?protectID=114154113180127190050057203026021130134026057192209171188199">dparrott@i...</a>]
    Sent: 17 December 2001 15:35
    Subject: [iPlanet-JATO] Jato 1.2 UML Class Diagrams
    Hi All,
    I have put together some UML class diagrams for JATO 1.2. You may findthem
    useful. Please let me know if you spot any errors.
    Regards,
    Dennis Parrott.
    Dennis Parrott
    Senior Consultant
    iPlanet Professional Services
    Sun Microsystems Limited
    Guillemont Park
    Camberley Mobile: +44 (0)7765 221938
    GU17 9QG Email : dparrott@i...
    iPlanet
    e-commerce solutions
    www.iplanet.com
    [Non-text portions of this message have been removed]
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    Choose from 1000s of job listings!
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Class diagram software

    Hi,
    is there any software which will create class diagram, if the source code is provided to it.if yes then please provide me the links.
    Thanks in advance
    Vikash

    Hello!
    "borland-together"(You may need licence to run the plugin) plugin with NDS Should do this. But you can download WebSphere Application Developer(IBM versin of Eclipse), it has a classdiagram plug-in, which also does do the same way.
    Thanks,
    Yasu

  • 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

  • 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.

  • How to draw class diagram in Visio 2013

    Hi All,
    Recently, I purchase a Visio 2013 Pro. I have used Visio 2010 before. In Visio 2013,
    Compared with Visio 2010, There are BIG changes in Visio 2013. I have several questions for Visio 2013.
    1. I don't know how to set in/out parameter in Visio 2013 class diagram.
    2. How to set parameter type(such as Int/String) in Visio 2013?
    3. How to add Method for a Class and set its parameters?
    And so on.
    Thank You.
    The future belongs to those who believe in the beauty of their dreams.

    Hi All,
    Recently, I purchase a Visio 2013 Pro. I have used Visio 2010 before. In Visio 2013,
    Compared with Visio 2010, There are BIG changes in Visio 2013. I have several questions for Visio 2013.
    1. I don't know how to set in/out parameter in Visio 2013 class diagram.
    2. How to set parameter type(such as Int/String) in Visio 2013?
    3. How to add Method for a Class and set its parameters?
    And so on.
    Thank You.
    The future belongs to those who believe in the beauty of their dreams.

  • JavaDoc HTML link of  classes in Java class diagram not correct

    Hi,
    I created a Java class diagram in a certain package (e.g. com.mycompany.p1) and placed some classes on this diagram from the same package and from other packages. Then I created JavaDocs. When I click on the classes in the created JavaDoc diagram, only the links of the classes in the same package as the diagram (com.mycompany.p1) wor correctly. When I click on a class outside this package I get an error message that the file is not found. It looks for the class documentation in the package of the diagram and this is obviousely wrong!
    Is there a property I missed to set or is it a bug?
    Thanks for help
    Thomas

    Hi Thomas,
    I don't use the diagrammers much, so I cannot comment on this directly; however, based on your description, it does sound like a defect. Do you have access to Oracle Support to file an SR?
    John

  • Ternary Association In a class diagram

    Hi
    Please help. I need to depict a ternary association icon between 3 Classes in my Class diagram.
    I am using Java Studio Enterprise 8's UML tool.
    The modeling palette does not make provision for this type of association.
    Is there a way to depict the ternary association icon, or is there an update for the Modeling palette in the class diagrams?
    It is the little diamond, looks the same as the decision icon.

    I filed one for neext release http://www.netbeans.org/issues/show_bug.cgi?id=79744
    It's unlikely functionality will be added in patch to jse8.

  • Creating OO database objects by using class diagrams in JDeveloper

    I am new to use JDeveloper. I create UML class diagrams (using Entity Object) in JDeveloper, which has inheritances and associations, and then choose Create Database Objects... try to create oo database, but it only create some tables in the database, not any object types ... .
    What do I missed? Or I have to create those oo database objects manually?
    Thanks.

    Tony,
    You can use database object types with BC4J, but only to implement BC4J domains (these can map to object types).
    For performance reasons, it is less practical to generate a table of object types for a complete EO. Most users view the BC4J layer as the 'pure' OO model, and map to a relational datamodel for optimal performance.
    Below some steps to create a DB object type for a domain:
    You can create Oracle Object Types in the database by creating a business component domain and then forward generating the database object. Forward generation of object tables from entity objects is not supported. To forward generate an Oracle Object Type from a new domain: In the System Navigator, right click on your business component package and choose Create Domain. When the Domain Wizard opens, review the information on the Welcome page and click Next. Enter a Name and Package for the domain or accept the defaults. Select the checkbox for Domain for an Oracle Object Type. Do not select any items on the Available Types list, as you are creating a new one. Enter the name of your new type in the Selected Type field. Click Next. On the Settings page, click New. Provide a name in the New Domain Attribute box. Select the appropriate Java type a[i]Long postings are being truncated to ~1 kB at this time.

  • UML Modeling for Class calling another class in Class Diagram and Sequence

    In my application, business delegate is calling Session Facade through business interface. Session Facade is implementing business interface which includes my application business processes.
    In my class diagram, I am showing business delegate, business interface and Session Facade.
    What kind of relationship should be shown between
    1. business delegate and business interface
    2. business delegate and Sesion Facade
    I am not very sure wthether relationship mentioned above are really need to show.
    What should be calling sequence in sequence diagram. Do I really need to show business interface in callling sequence of sequence diagram or I can show business delegate is calling directly to Session Facade.
    Thanks
    San

    In my application, business delegate is calling
    Session Facade through business interface. The delegate is interacting with what exactly when you say "through"?
    If the delegate uses an interface then there is an association.
    If it is getting an interface implementation from some other object then there is an association there.
    Given the above then there is no relationship between the implementation of a interface and the delegate however.
    Session Facade is implementing business interface which
    includes my application business processes.The implementation would have associations to the objects that it is providing a facade for.

Maybe you are looking for

  • Difference in String joining

    String m="Hello" Is there any difference between m=m+" Java"; and m=m.concat(" Java");There must be some difference I guess, but not sure where. Can anyone explain please?

  • Multiple Libraries - Authorization Question - For NON-iTune purchased music

    Please help! The questions come at the end. I have an extensive classical music iTunes library in AAC format that I ripped from CDs I've purchased over the past 20 years. NON of these were purchased from iTunes. (I have another library on my PC with

  • How to turn off charge alert?

    Since I have loaded GDR2 & 3 the charging alert sounds in the middle of the night waking my wife and me. When I place the phone on the wireless charger the charging alert sounds as it always has but what is new is that the alert will sound again some

  • Need to hide rows in the Query results with blank values

    Hi All, We have a requirement like this for Stock Report, we need to display both movements and balance in that report. We display the movement data directly from the Standard cube with input as Fiscal period/year.  When we do like this, we are not a

  • AirTunes remote speaker doesn't appear in iTunes

    Let's say you just bought an AirPort Express to wirelessly stream audio from your iTunes to your hifi, but after installation and network configuration, you're not seeing the remote speakers control at the bottom right of the iTunes window. Well, in