In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "MyEclipse UML architecture design method is what", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "MyEclipse UML architecture design method is what"!
Unified Modeling Language (UML) is a standardized modeling language for object-oriented software. Because of its simplicity, unity and ability to express dynamic and static information in software design, UML has become the de facto industry standard for visual modeling languages. UML provides 9 kinds of diagrams: class diagram, object diagram, use case diagram, sequence diagram, collaboration diagram, state diagram, activity diagram, component diagram and deployment diagram.
MyEclipse UML architecture design support functions can meet general project design needs. Some of the design work in the Terracotta Warriors online store in this book was done with the help of MyEclipse UML architecture design support. This section provides a brief introduction to MyEclipse's UML design capabilities, using common class diagram design examples.
MyEclipse UML architecture design simple class design case
This section designs a class diagram for a simple commodity class, Goods.
(1) Click File → New → Other menu to pop up the dialog box as shown in Figure 1. Select the UML subproject of MyEclipse project, and then select the UML Model Repository subproject.
(2) Click the "Next" button to pop up the dialog box as shown in Figure 2. UML Model Repository is set to at1test.
Figure 1MyEclipse UML Architecture Design New UML Model Repository
Figure 2MyEclipse UML Architecture Design New UML File
(3) Click the Finish button to enter the UML Visual Editor Designer. as shown in figure 3. The blank area is UML design area.
(4) Design Class Goods with the help of class diagram design tools as shown in Figure 4.
Figure 3 UML Visual Editor Designer for MyEclipse UML Architecture Design
Figure 4. Goods class diagram for MyEclipse UML architecture design
generate Java code
After the Goods class diagram is designed, Java code can be generated with MyEclise's Java code auto-generation feature.
(1) Click UML→Generate Java menu to pop up the dialog box as shown in Figure 5. Select the Goods class.
Figure 5. Generating Java code for MyEclipse UML architecture design
(2) Click the Done button. MyEclipse automatically converts the Goods class diagram to the following source code.
Code 14-4 File name: Goods.Java
public class Goods { public String goods_id; public int goods_name; public float price; public float discount; public int getGoods_id() { return 0; } public void setGoods_id(void Goods_id) { } public String getGoods_name() { return null; } public void setGoods_name(String goods_name) { } public float getPrice() { return 0; } public void setPrice(float Price) { } public float getDiscount() { return 0; } public void setDiscount(float Discount) { } }
MyEclipse UML Architecture Design Implementation Reverse Java Code
MyEclise also supports reverse engineering. For example, Java class code can be reverse-converted to UML class diagram design. Here is an example of the DB_Conn class to introduce reverse-Java code functionality.
Copy the DB_Conn.java code into the src directory.
(2) Click the menu "UML→Reverse Engineer UML From Java…" to pop up the dialog box shown in Figure 6. Select the DB_conn.java file.
(3) Click the "Next" button to pop up the dialog box as shown in Figure 7. Remove the Hide class/interface details option.
Figure 6. Reverse Java code for MyEclipse UML architecture design
Figure 7. Reverse Java Code Feature Options for MyEclipse UML Architecture Design
(4) Click the Done button. MyEclipse automatically reverts the DB_Conn.java source code to the DB_Conn class diagram. This is shown in Figure 8.
Figure 8. DB_Conn class diagram for MyEclipse UML architecture design
At this point, I believe that we have a deeper understanding of "MyEclipse UML architecture design method is what", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.