!--a11y-->
Creating Public Parts for the Development
Components 
In this step you create and configure two public parts. You use them to publish the different development components (DCs). The public parts are:
● api
Public part against which the other components can compile.
● tax
Public part used for assembling a runtime archive that contains the full set of classes. In addition, this public part will be used to wrap this library with a deployable J2EE library.
You are working in the Java perspective ® Java DC Explorer view.
Add a public part to the component, publishing ITaxCalculator and TaxFactory.
...
1. Go to the Java DC Explorer view.
2. To add a public part, open your DC node.
3. Open the DC MetaData node.
4. Select the node Public Parts.
5. From the context menu, choose New Public Part...
The dialog window Add Public Part appears.
6. On the New Public Part dialog, enter api as the name of the new public part.
7. Select the radio button Provides an API for developing/compiling other DCs.

This creates a public part other components can compile against. More information: Purposes of Public Parts.
8. Enter API of the Tax Calculator as the caption.
9. To confirm your changes, choose Finish.
A dialog box is displayed.
10. When asked to add the new file to the DTR repository, confirm this by choosing OK.
11. Select activity New Java Component, if necessary, and again choose OK.
...
1. Open the Public Parts node in Java DC Explorer view.
You see a new entry named api.
2. Select api ® Entities and choose Edit Entities… from the context menu.
A dialog window Input Help: Entities appears.
3. Select Java Class in the Select Entity Type tree and mark the checkboxes of the following entries in the hierarchical display:
a. ITaxCalculator
b. TaxFactory.
4. In the section Add Entity to Public Part, select the entryof type Class and confirm with Finish.
This adds ITaxCalculator and TaxFactory to the public part.
You are in the Java perspective in the Java DC Explorer view.
...
1. In the context menu of your DC, choose Development Component ® Build...
The dialog window Build Development Components appears.
2. Select your project node (if necessary) and confirm with OK.
An archive for the selected DC is created.

Check this: In the Package Explorer view, follow the path: gen ® default ® public ® api ® lib ® java: The archive is named example.org~appl~tax~calc~api.jar.
You are in the Java perspective in the Java DC Explorer view.
...
1. To add a public part, open the node DC MetaData and select Public Parts.
2. From the context menu, choose New Public Part.
A dialog box appears.
3. In the New Public Part dialog, enter tax as the name of the new public part.
4. Select the radio button Can be packaged into other build results (for example SDAs).

This public part is used to assemble a runtime archive containing the full set of classes. Furthermore, this public part will be used later to wrap this library with a deployable J2EE library.
To display and change the purpose of the public part, use the Properties view.
5. Enter Tax Calculator Library as the caption.
6. To confirm your changes, choose Finish.
A dialog box is displayed.
7. When asked to add the new file to the DTR repository, confirm this by choosing OK.
8. If you do not use a default activity, select the New Java Component activity and again choose OK.

Open the Public Parts node in Java DC Explorer view. You now see two public parts, api and tax.
...
1. Select the Entities node of tax and in the context menu, choose Edit Entities…
A dialog appears.
2. In the Select Entity Type list, select the entry Java Package Tree.
3. In the Select Entities tree, select the entry org.
4. In the section Add Entity to Public Part, select the entry as Class.
5. To confirm your entries, choose Finish.

This will add the Package Tree to the public part. You can now see the entries under the Entities node.
You are in the Java perspective.
...
1. Choose the Java DC Explorer view.
2. In the context menu, choose Development Component ®Build...
The dialog window Build Development Components appears.
3. Select your project node (if necessary) and confirm with OK.
You have created the public parts of the DC and added the required entries to them.
You have built two archives:
● example.org~appl~tax~calc~api.jar contains the classes against which other components can be compiled.
● example.org~appl~tax~calc~tax.jar contains all classes, but cannot be used for component builds. Therefore the class TaxCalculator is private to the component.
You can find them in the Java perspective in the Package Explorer view under the path:
Project node ® gen ® default ®
● api ® lib ® java ® api.jar
● tax ® lib ® java ® tax.jar