Package mapping for Java (Java code)
For each Package, ACS generates a subfolder in the working directory.
* 
A Java package is represented in the model by a Namespace package. Use Folder Packages for library paths.
Child items:
If the Package owns Attributes, the Attributes are ignored. For Attribute mapping information, see Attribute mapping for Java (Java code).
If the Package 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 Package 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:
// The working directory is C:/Work
// File C:/Work/package1/package2/foo.java
package package1.package2;
public class foo
{
// ...
}
If the Package owns Data Types, ACS generates each Data Type in the folder created for the Package. For Data Type mapping information, see Data type mapping for Java (Java code).
If the Package owns Interfaces, ACS generates each Interface in the folder created for the Package. For Interface mapping information, see Interface mapping for Java (Java code).
If the Package owns Operations, the Operations are ignored. For Operation mapping information, see Operation mapping for Java (Java code).
If the Package owns Type Definitions of type Enumeration, ACS generates each Type Definition in the folder created for the Package. For Type Definition mapping information, see Type definition mapping for Java (Java code).
Properties:
The Name property is generated as the name of the Java package and folder.
* 
ACS may modify the folder name to make it valid for Java. You can specify the exact folder name through the CODE_GENERATION_NAME property of a Package. Tell me more...
The Mapping property determines specifies whether the Package models a Java Package (Namespace mapping) or a folder (Folder mapping). Irrespective of the mapping, a folder is always generated for a Modeler Package.
Was this helpful?