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 > Mapping information > Mapping information (excluding state diagrams) > Model mapping for Java (Java code)
  
Model mapping for Java (Java code)
ACS does not generate anything directly for the Model; however, if the Model directly owns a Class, ACS generates the Model as the Java default unnamed package.
Example code:
// Note the lack of a package statement
public class foo
{
// ...
}
All Model properties are ignored.
Child items:
If the Model directly owns Attributes, the Attributes are ignored. For Attribute mapping information, see Attribute mapping for Java (Java code).
If the Model directly owns Basic Types, the Basic Types are ignored. For Basic Type mapping information, see Basic type mapping for Java (Java code).
* 
Reverser Notes: When reverse engineering code, used built in Java types are created in the Model (directly scoped to the Model) if they are not present.
If the Model directly owns Classes, ACS generates each Class in the folder created for the package. For Class mapping information, see Class mapping for Java (Java code).
Example code:
// Note the lack of a package statement
public class foo
{
// ...
}
If the Model owns Data Types, ACS generates each Data Type in the folder created for the Model. For Data Type mapping information, see Data type mapping for Java (Java code).
If the Model owns Interfaces, ACS generates each Interface in the folder created for the Model. For Interface mapping information, see Interface mapping for Java (Java code).
If the Model directly owns Operations, the Operations are ignored. For Operation mapping information, see Operation mapping for Java (Java code).
If the Model directly owns Packages, ACS generates the sub-Packages as subfolders and Java packages depending on the Package's mapping. For Package mapping information, see Package mapping for Java (Java code).
If the Model owns Type Definitions of type Enumeration, ACS generates each Type Definition in the folder created for the Model. For Type Definition mapping information, see Type definition mapping for Java (Java code).
Other child items are ignored.