Adapter capabilities
The following are Java Class Adapter capabilities:
- A card (or GET or PUT rule) represents a Java™ object. If multiple objects are required, multiple cards or rules must be specified.
- The adapter provides access to public fields that can be set directly in the map.
- Any (but naturally one) public constructor can be invoked.
- Any public methods may be invoked on the object, in the order specified in the schema.
- Any public static methods may be invoked on the class (even if no object was constructed).
- Objects created in one card can be used as parameters to methods in subsequent calls. These objects can be created either explicitly, or by invoking a method that returns an object.
- Objects are identified by reference labels. The "this" attribute is used to assign a label to an explicitly created object. Objects that are returned from method calls are assigned a label by the adapter. This label is of the form "Ref.nn", where nn is a number which uniquely identifies the object.
- Return values of any of the methods can be returned from a GET call. The importer provides a mechanism to allow the user to select which methods the return values should be provided. These return values can be primitive types (for example, int) or objects. If objects, the public fields are returned together with a reference to the object so that the object can be used in a subsequent call.
- The public fields of the object after all methods have been invoked on it can be returned.