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) > Type definition mapping for Java (Java code)
  
Type definition mapping for Java (Java code)
ACS generates a Type Definition when it is used a type.
The generation of a enum from a Type Definition is derived from the properties of the Type Definition and the tagged values set for the Tag Definitions applied to the Type Definition by the «Java Enum» stereotype.
Child items:
If the Type Definition owns Enumeration Literals, ACS generates enum literals within the enum definition. For Enumeration Literal mapping information, see Enumeration literal mapping for Java (Java code).
Type Definition Properties:
If the Construction property is set to Enumeration, ACS generates an enum. For other construction settings, ACS generates only the name of the Type Definition.
If the Description property has a value, ACS generates the Description as a comment for the enum.
The Name property is generated as the name of the enum in the code.
The Pointer property is ignored.
Tag Definitions:
The following Tag Definitions are applied to an Operation by the «Java Enum» stereotype:
If the tagged value of the Java Default Access tag definition is set to TRUE, ACS generates the enum with no access specifier.
If the tagged value of the Java Enum Body tag definition has been set, ACS generates the tagged value as field and method declarations.
If the tagged value of the Java Enum Implements Text tag definition has been set, ACS generates the tagged value as the implements statement for interfaces the enum implements.
If the tagged value of the Java Is Static tag definition is set to TRUE, ACS generates the enum as static.
If the tagged value of the Java Non Member tag definition is set to TRUE, ACS generates the enum outside the enum construct of its parent, but in the same source file.