Package org.omg.CORBA

Examples of org.omg.CORBA.NamedValue


        arguments = new org.omg.Dynamic.Parameter[request.arguments.count()];
        for (int i = 0; i < arguments.length; i++)
        {
            try
            {
                NamedValue value = request.arguments.item(i);

                ParameterMode mode = null;
                if (value.flags() == ARG_IN.value)
                {
                    mode = ParameterMode.PARAM_IN;
                }
                else if (value.flags() == ARG_OUT.value)
                {
                    mode = ParameterMode.PARAM_OUT;
                }
                else if (value.flags() == ARG_INOUT.value)
                {
                    mode = ParameterMode.PARAM_INOUT;
                }

                arguments[i] = new org.omg.Dynamic.Parameter(value.value(), mode);
            }
            catch (Exception e)
            {
                logger.debug("unexpected exception", e);
            }
View Full Code Here


        Any argument1 = setup.getClientOrb ().create_any ();
        argument1.insert_long(-100);
        Any argument2 = setup.getClientOrb ().create_any ();
        argument2.insert_long(0);

        NamedValue nvArg1 = argList.add_value ("paramIn", argument1, org.omg.CORBA.ARG_IN.value);
        NamedValue nvArg2 = argList.add_value ("paramOut", argument2, org.omg.CORBA.ARG_OUT.value);


        // Create an Any object to hold the return value of the method and
        // wrap it in a NamedValue
        Any result = setup.getClientOrb ().create_any();
        result.insert_long (0);

        NamedValue resultVal = setup.getClientOrb ().create_named_value("result", result,
            org.omg.CORBA.ARG_OUT.value);

        Context ctx = null;

        // Create the method request using the default context, the name of
View Full Code Here

        Any argument1 = setup.getClientOrb ().create_any ();
        argument1.insert_long(10);
        Any argument2 = setup.getClientOrb ().create_any ();
        argument2.insert_long(0);

        NamedValue nvArg1 = argList.add_value ("paramIn", argument1, org.omg.CORBA.ARG_IN.value);
        NamedValue nvArg2 = argList.add_value ("paramOut", argument2, org.omg.CORBA.ARG_OUT.value);


        // Create an Any object to hold the return value of the method and
        // wrap it in a NamedValue
        Any result = setup.getClientOrb ().create_any();
        result.insert_long (0);

        NamedValue resultVal = setup.getClientOrb ().create_named_value("result", result,
            org.omg.CORBA.ARG_OUT.value);

        // Get the local context from the ORB.
        Context ctx = null;
View Full Code Here

        Any argument1 = setup.getClientOrb ().create_any ();
        argument1.insert_long(100);
        Any argument2 = setup.getClientOrb ().create_any ();
        argument2.insert_long(0);

        NamedValue nvArg1 = argList.add_value ("paramIn", argument1, org.omg.CORBA.ARG_IN.value);
        NamedValue nvArg2 = argList.add_value ("paramOut", argument2, org.omg.CORBA.ARG_OUT.value);


        // Create an Any object to hold the return value of the method and
        // wrap it in a NamedValue
        Any result = setup.getClientOrb ().create_any();
        result.insert_long (0);

        NamedValue resultVal = setup.getClientOrb ().create_named_value("result", result,
            org.omg.CORBA.ARG_OUT.value);

        // Get the local context from the ORB.
        Context ctx = null;
View Full Code Here

        Any argument1 = setup.getClientOrb ().create_any ();
        argument1.insert_long(100);
        Any argument2 = setup.getClientOrb ().create_any ();
        argument2.insert_long(0);

        NamedValue nvArg1 = argList.add_value ("paramIn", argument1, org.omg.CORBA.ARG_IN.value);
        NamedValue nvArg2 = argList.add_value ("paramOut", argument2, org.omg.CORBA.ARG_OUT.value);


        // Create an Any object to hold the return value of the method and
        // wrap it in a NamedValue
        Any result = setup.getClientOrb ().create_any();
        result.insert_long (0);

        NamedValue resultVal = setup.getClientOrb ().create_named_value("result", result,
            org.omg.CORBA.ARG_OUT.value);

        // Get the local context from the ORB.
        Context ctx = null;
View Full Code Here

        Any argument1 = setup.getClientOrb ().create_any ();
        argument1.insert_long(20);
        Any argument2 = setup.getClientOrb ().create_any ();
        argument2.insert_long(0);

        NamedValue nvArg1 = argList.add_value ("paramIn", argument1, org.omg.CORBA.ARG_IN.value);
        NamedValue nvArg2 = argList.add_value ("paramOut", argument2, org.omg.CORBA.ARG_OUT.value);


        // Create an Any object to hold the return value of the method and
        // wrap it in a NamedValue
        Any result = setup.getClientOrb ().create_any();
        result.insert_long (0);

        NamedValue resultVal = setup.getClientOrb ().create_named_value("result", result,
            org.omg.CORBA.ARG_OUT.value);

        // Get the local context from the ORB.
        Context ctx = null;
View Full Code Here

        this.context = ctx;
    }

    public Any add_in_arg()
    {
        NamedValue nv = arguments.add(org.omg.CORBA.ARG_IN.value);
        ((org.jacorb.orb.NamedValue)nv).set_value( orb.create_any());
        return nv.value();
    }
View Full Code Here

        return nv.value();
    }

    public Any add_named_in_arg(java.lang.String name)
    {
        NamedValue nv = arguments.add_item(name,org.omg.CORBA.ARG_IN.value);
        ((org.jacorb.orb.NamedValue)nv).set_value( orb.create_any());
        return nv.value();
    }
View Full Code Here

        return nv.value();
    }

    public Any add_inout_arg()
    {
        NamedValue nv = arguments.add(org.omg.CORBA.ARG_INOUT.value);
        ((org.jacorb.orb.NamedValue)nv).set_value( orb.create_any());
        return nv.value();
    }
View Full Code Here

        return nv.value();
    }

    public Any add_named_inout_arg(java.lang.String name)
    {
        NamedValue nv = arguments.add_item(name,org.omg.CORBA.ARG_INOUT.value);
        ((org.jacorb.orb.NamedValue)nv).set_value( orb.create_any());
        return nv.value();
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.NamedValue

Copyright © 2018 www.massapicom. 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.