Simple Java class example

The information that the user selects through the Java Class Importer is reflected in the schema that is generated. The schema contains several elements:

  • Class name and options
  • Constructor call
  • Public fields
  • Method calls

The following code is an example of the simple class SubClass (SubClass.java):

public class SubClass
{
    public int _intField;
    public byte _byteArrayField[];

    public SubClass(int intPar1)
    {
        _intField=intPar1;
        _byteArrayField = new byte[5];
    }
}

Install_dir\examples\adapters\javaclas\subclass.mtt reflects this simple example.