Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Modeling Java code in modeler > Setting up Java specific information for roles (Java code)
  
Setting up Java specific information for roles (Java code)
In addition to the standard Role properties in Modeler, you can apply the «Java Role» stereotype to a Role, and then use its Tag Definitions to define Java specific information.
1. If you have not done so already, add the Java Profile package to your Model. How?
2. Set the standard properties of the Role as required. Tell me more...
3. Apply the «Java Role» stereotype to the Role.
4. For information about applying Stereotypes to an item, see Applying a stereotype to a model item.
5. Open the Role's Property Pages, and then click the Java Role tab.
6. For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied tag definition.
7. If you want to specify a field modifier in front of the attribute's data type, set the tagged value of the Java Field Modifier to volatile, transient or volatile transient.
8. If you want to specify an array for the attribute, specify the required pairs of empty brackets as the tagged value of the Java Array Spec tag definition.
9. If you want to specify that the attribute has no access specifier, set the tagged value of the Java Default Access tag definition to TRUE.
10. If the attribute is using a Java Generic for its data type and you want to specify the arguments that are passed to the generic type, set the tagged value of the Java Actual Arguments tag definition to the actual arguments.
11. If the role represents a Java Generic Collection class and you want to specify the Generic Class that is used to hold that collection, use the Java Data Type tag definition to link to the Generic Class, or use the Java Generic Name tag definition to specify the name of the Generic Class.
12. If you want to generate the attribute's data type with a qualified name, set the tagged value of the Java Needs Qualified Type tag definition to TRUE.