// Create and register schema for this agent.
String packageName = "com.fadams.qmf2";
// Declare a mammal class to test against.
SchemaObjectClass mammal = new SchemaObjectClass(packageName, "mammal");
mammal.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
mammal.addProperty(new SchemaProperty("legs", QmfType.TYPE_INT));
mammal.setIdNames("name");
// Declare an insect class to test against.
SchemaObjectClass insect = new SchemaObjectClass(packageName, "insect");
insect.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
insect.addProperty(new SchemaProperty("legs", QmfType.TYPE_INT));
insect.setIdNames("name");
// Declare a reptile class to test against.
SchemaObjectClass reptile = new SchemaObjectClass(packageName, "reptile");
reptile.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
reptile.addProperty(new SchemaProperty("legs", QmfType.TYPE_INT));
reptile.setIdNames("name");
// Declare a bird class to test against.
SchemaObjectClass bird = new SchemaObjectClass(packageName, "bird");
bird.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
bird.addProperty(new SchemaProperty("legs", QmfType.TYPE_INT));
bird.setIdNames("name");
registerObjectClass(mammal);
registerObjectClass(insect);