
Runtime Procedure
The mapping editor generates Java source code from the graphical description of the message mapping. This section gives you a brief overview of how the generated Java source code processes an XML source structure at runtime.
Basics
In the mapping editor you assign the fields of two XML structures to each other. Note that at runtime no target structure exists prior to the mapping. The target structure is only generated when the mapping is executed.
The message mapping must therefore generate the target structure at runtime. Two things determine how the target structure looks after it has been generated:
In both cases, this in turn depends on the value for Occurrence that you specified in the type definition in the XSD editor. The values for Occurrence are mapped to the XSD attributes
minOccurs and maxOccurs. You can display these attributes in the tree and table view. minOccurs specifies the minimum number of times a tag must occur, while maxOccurs specifies the maximum number of times a tag may occur. The mapping editor maps the values of required to minOccurs=maxOccurs=1 and those of optional to minOccurs=0 and maxOccurs=1 for attributes.
If the occurrence of a tag in the source or target structure is not explicitly specified, the mapping editor makes this visible to the user. These default values correspond to the XSD specification (
The message mapping processes the source structure and generates the target structure taking into account to the restrictions for the target fields: