// Declare the child class
SchemaObjectClass child = new SchemaObjectClass(packageName, "child");
child.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
// Declare the event class
SchemaEventClass event = new SchemaEventClass(packageName, "event");
event.addProperty(new SchemaProperty("text", QmfType.TYPE_STRING));
System.out.println("Test3 Schema classes initialised OK");
// Now we create new instance of each class from the map encodings and list the values
// to check everything looks OK.
System.out.println("Test3 testing serialisation of exception schema");
SchemaObjectClass exceptionFromMap = new SchemaObjectClass(exception.mapEncode());
exceptionFromMap.listValues();
System.out.println();
System.out.println("Test3 testing serialisation of control schema");
SchemaObjectClass controlFromMap = new SchemaObjectClass(control.mapEncode());
controlFromMap.listValues();
System.out.println();
System.out.println("Test3 testing serialisation of child schema");
SchemaObjectClass childFromMap = new SchemaObjectClass(child.mapEncode());
childFromMap.listValues();
System.out.println();
System.out.println("Test3 testing serialisation of event schema");
SchemaEventClass eventFromMap = new SchemaEventClass(event.mapEncode());
eventFromMap.listValues();
System.out.println();
}
catch (QmfException qmfe)
{