Adapter action sequence

This section describes the sequence of actions that the adapter is performing on the Java object.

The constructor is mapped followed by the public fields. This represents the order that the adapter considers these elements: it first invokes the constructor to create the object and then sets the public fields according to the values in the schema.

When this card is executed, the object will be created by calling the constructor with 1 as the value of the constructor's single parameter. Then the public fields are set to the values defined in the map. The object is given the reference id1, which may be used in any subsequent card.

If this map is executed, and the output is directed to a file instead of to the Java Class Adapter, it can be seen that the schema generates an XML representation of the object and its methods:

<SubClass inherited="no" returnFields="no" this="id1">
    <Constructor>
      <P1_int type="int">1</P1_int> 
   </Constructor>
    <Fields>
      <_intField type="int">5</_intField>
      <_byteArrayField type="byte[]">
         <element>8</element>
        <element>9</element>
      </_byteArrayField>
    </Fields>
</SubClass>