Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
private classes in java  
Forum Index -> Visual Paradigm for UML (VP-UML)
Author Message
ChrisM08


Joined: 2008/04/19
Messages: 1

Offline

hello!
im making a uml model for a software that is going to be developed in java.
lets say i have a class A and a class B. class B is a private class and supposed to be nested inside class A. how do i set my classes up so that the code generation puts the private class B inside class a. right now i set the visibility to B private and the code generator simply ignores it. class b is also outside of class a so i suppose the generator cant really find any kind of relation.



thanks in advance

chris
 
LilianWong


Joined: 2008/02/22
Messages: 278

Offline

Hi Chris,

Thanks for your post. You can draw a containment from Class A to Class B, then Class B will be generated even private in code generation.

FYI, the class at the head of the containment contains the class at the end of the containment end. You may refer to the image below.

If there are further inquiries, please do not hesitate to ask.

Best regards,
Lilian Wong

Attached Image : Description : Containment (33 kb)

 
 
   Forum Index -> Visual Paradigm for UML (VP-UML)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil