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 > Generating Java code > Overview of modeling Java code in Modeler (Java code)
  
Overview of modeling Java code in Modeler (Java code)
As with modeling other code in Modeler, you model Java code using the Class Modeling facilities in Modeler. In addition, you can model Java specific information using the Stereotypes and Tag Definitions of the Java Profile package.
For detailed information about how the Modeler class modeling items map to Java code, click here Overview of the Java profile package (Java code)
For overview information about the Stereotypes and Tag Definitions of the Java profile package, click here Overview of the Java profile package (Java code)
For procedural information about setting up the Stereotypes and Tag Definitions to model Java specific information in Modeler, see the following links:
Modeling Java exceptions in Modeler (Java code)
Setting up Java specific information for attributes (Java code)
Setting up Java specific information for classes (Java code)
Setting up Java specific information for dependencies (Java code)
Setting up Java specific information for data types (Java code)
Setting up Java specific information for enumeration literals (Java code)
Setting up Java specific information for generalizations (Java code)
Setting up Java specific information for interfaces (Java code)
Setting up Java specific information for operations (Java code)
Setting up Java specific information for parameters (Java code)
Setting up Java specific information for roles (Java code)
Setting up Java specific information for type definitions (Java code)
For information about adding the Java Profile package to a Model, see Adding the Java profile package to a model (Java code).
For information about generating Java code for systems that can work with ThingWorx Mashups and systems that can communicate using the ThingWorx AlwaysOn protocol, see Overview of integration for ThingWorx.
The Examples database includes the Heart Monitor Java model, which demonstrates how to model a Java application in Modeler. The Read Me text diagram in the Heart Monitor Java model provides instructions for generating and building the provided Heart Monitor application using the Eclipse Java development environment. For information about working with the Hear Monitor Java simulation, see Overview of the heart monitor Java simulation.
If you reverse engineer Java code to a model that does not contain the Java profile, the Reverser creates a Java Profile in the Model; however, the Java profile may contain only the Stereotypes and Tag Definitions required for the code you reverse engineered. In addition, each Stereotype and Tag Definition of the Java Profile package will not include a description of its purpose:
If you want to add a complete and documented Java profile to a Model that does not contain the Java Profile package, see Adding the Java profile package to a model (Java code).
If the Reverser has created a Java profile in your Model and you want to update it so that it is complete and includes the Stereotype and Tag Definition descriptions, see Updating the Java profile package in a model (Java code).