Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize data type synchronization with Enterprise Architect

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to achieve data type synchronization in Enterprise Architect". In daily operation, I believe many people have doubts about how to achieve data type synchronization in Enterprise Architect. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to achieve data type synchronization in Enterprise Architect". Next, please follow the editor to study!

Define the data and use the data later. Of course, I hope that when the name of the data is changed, the place where the data is used can also change, but the reality is not always so good. Here is a little trick, you know?

Suppose you have a simple class diagram below.

Try adding a data member of type TestData and name m_data to Tester.

The operation is simple, go to the properties dialog box of Tester, open the [Attributes] category, and enter the attribute name and type.

Similarly, you can add a setData method to the [Operations] category.

Enter setData in the name column, data in the parameter name column, and TestData.

After the above operation is completed, you can get the following class diagram.

The operation is simple, but the next step is the key to this article. If you change the name of TestData, the attribute type and parameter type in the Tester class will not change.

Solving this problem requires the following tips, and you only need to pay attention to two main points:

Instead of entering the parameter type manually, you can select the data type through the drop-down list in the following figure.

When the data type is selected, save the file.

After performing the above operation, change the name of the TestData to TestData1, and you can see that the attribute types of the Tester and the parameter types of the operation become TestData1 together.

What if you need a TestData* type?

Also do not forgive the circle, after choosing TestData, it is not possible to enter [*] manually.

The way to do this is to add another data type of TestData*. Then use the above method, because it's important, so say it again:

Instead of entering the parameter type manually, you can select the data type through the drop-down list.

When the data type is selected, save the file.

At this point, the study on "how to achieve data type synchronization in Enterprise Architect" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report