Examples of ChildClass


Examples of Displayer.ChildClass

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setAChild(ChildClass aChild) {
        ChildClass oldValue = this.aChild;
        this.aChild = aChild;
        this.qq_Listeners.firePropertyChange("AChild", oldValue, this.aChild);
    }
View Full Code Here

Examples of org.apache.axis2.rmi.databind.dto.ChildClass

            Operation operation = this.service.getOperation("method1");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            ChildClass childClass = new ChildClass();
            childClass.setParam1("test param1");
            childClass.setParam2(5);
            childClass.setParam3(23.45f);
            childClass.setParam4(34.5);
            inputObjects.add(childClass);
            Object[] objects = getInputObject(inputObjects, operation);

            ChildClass object = (ChildClass) operation.getJavaMethod().invoke(this.serviceObject, objects);
            ChildClass returnObject = (ChildClass) getReturnObject(object, operation);

            assertEquals(returnObject.getParam1(),"test param1");
            assertEquals(returnObject.getParam2(),5);
            assertTrue(childClass.getParam3() == 23.45f);
            assertTrue(childClass.getParam4() == 34.5);
        } catch (Exception e) {
            fail();
        }
View Full Code Here

Examples of sample.rmi.server.dto.ChildClass

                    (Service4Interface) RMIClientProxy.createProxy(Service4Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service4");

            List param1 = new ArrayList();
            param1.add(new ChildClass());
            param1.add(new Integer(2));

            List param2 = new ArrayList();
            param2.add(new ParentClass());
            param2.add(new Float(2.34f));
View Full Code Here

Examples of sample.rmi.server.dto.ChildClass

        try {
            Service2Interface proxy =
                    (Service2Interface) RMIClientProxy.createProxy(Service2Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service2");
            ChildClass childClass = new ChildClass();
            childClass.setParam1("test param1");
            childClass.setParam2(10);
            childClass.setParam3("test param3");
            childClass.setParam4(new Integer(12));
            ChildClass result = (ChildClass) proxy.method1(childClass);
            System.out.println("Result param 1 ==> " + result.getParam1());
            System.out.println("Result param 2 ==> " + result.getParam2());
            System.out.println("Result param 3 ==> " + result.getParam3());
            System.out.println("Result param 4 ==> " + result.getParam4());

        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
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.