Package org.apache.qpid.qmf2.common

Examples of org.apache.qpid.qmf2.common.SchemaEventClass.addProperty()


            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.
View Full Code Here


            String packageName = "com.profitron.gizmo";

            // Declare a schema for a structured exception that can be used in failed method invocations.
            SchemaObjectClass exception = new SchemaObjectClass(packageName, "exception");

            exception.addProperty(new SchemaProperty("whatHappened", QmfType.TYPE_STRING));
            exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
View Full Code Here

            // Declare a schema for a structured exception that can be used in failed method invocations.
            SchemaObjectClass exception = new SchemaObjectClass(packageName, "exception");

            exception.addProperty(new SchemaProperty("whatHappened", QmfType.TYPE_STRING));
            exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
            control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
View Full Code Here

            // Declare a schema for a structured exception that can be used in failed method invocations.
            SchemaObjectClass exception = new SchemaObjectClass(packageName, "exception");

            exception.addProperty(new SchemaProperty("whatHappened", QmfType.TYPE_STRING));
            exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
            control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
            control.addProperty(new SchemaProperty("methodCount", QmfType.TYPE_INT));
View Full Code Here

            exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
            control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
            control.addProperty(new SchemaProperty("methodCount", QmfType.TYPE_INT));

            SchemaMethod stopMethod = new SchemaMethod("stop", "Stop Agent");
            stopMethod.addArgument(new SchemaProperty("message", QmfType.TYPE_STRING));
            control.addMethod(stopMethod);
View Full Code Here

            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");
            control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
            control.addProperty(new SchemaProperty("methodCount", QmfType.TYPE_INT));

            SchemaMethod stopMethod = new SchemaMethod("stop", "Stop Agent");
            stopMethod.addArgument(new SchemaProperty("message", QmfType.TYPE_STRING));
            control.addMethod(stopMethod);
View Full Code Here

            createMethod.addArgument(new SchemaProperty("childAddr", QmfType.TYPE_MAP, "{dir:OUT}"));
            control.addMethod(createMethod);

            // 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));
View Full Code Here

            // 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");
View Full Code Here

            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));
View Full Code Here

            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");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.