The <codetable> Element

The <codetable> element is a sub-element below the <codetables> root. The <codetable> element should follow the <description> element, if it's specified. For an ordinary code table file definition only a single <codetable> element can be defined. If a hierarchy_name attribute has been specified in the <codetables> multiple <codetable> elements are allowed as long as they are linked correctly in a hierarchy.

The codetable element groups a number of <code> elements together and an optional <codetabledata> element.

The <codetable> element has the following attributes:

Table 1. Attributes of the codetable Element

Attribute Name

Required

Default

Description

name

Yes

None

A unique identifier for the code table. The name attribute is trimmed of leading and trailing spaces on code table generation. Some restrictions apply to the name attribute when the <displaynames> element is specified. Please see Artefacts Produced by ctgen Build Target for further details.

java_identifier

Yes

None

The name of the generated symbol definition Java file. This identifier cannot be duplicated for code tables with different names.

parent_codetable

No

None

Used to define the name of the parent code table in the hierarchy, where the code table file has been defined as a hierarchy of code tables.