Examples of extract_Value()


Examples of org.apache.yoko.orb.CORBA.Any.extract_Value()

        try {
            return any.extract_Object();
        } catch (org.omg.CORBA.BAD_OPERATION ex) {
            try {
                return any.extract_Value();
            } catch (org.omg.CORBA.BAD_OPERATION e) {
                throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
            }
        }
    }
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.Any.extract_Value()

        try {
            return any.extract_Object();
        } catch (org.omg.CORBA.BAD_OPERATION ex) {
            try {
                return any.extract_Value();
            } catch (org.omg.CORBA.BAD_OPERATION e) {
                throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
            }
        }
    }
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

        case TCKind._tk_void:
            return null;

        case TCKind._tk_value:
        case TCKind._tk_value_box:
            return any.extract_Value();

        case TCKind._tk_abstract_interface:
            org.omg.CORBA_2_3.portable.InputStream in23 = (org.omg.CORBA_2_3.portable.InputStream) any
                    .create_input_stream();
            return in23.read_abstract_interface();
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

    b.read_value((org.omg.CORBA_2_3.portable.InputStream) ou,
                 cmInfoHelper.type()
                );

    cmInfo s = (cmInfo) b.extract_Value();

    assertEquals("After Any, cv ", s.message, orig.message);
    assertEquals("After Any, cv ", s.name, orig.name);

    cmInfo a =
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

                InputStream ou = out.create_input_stream();
                TypeCode type = orig._type();

                b.read_value((org.omg.CORBA_2_3.portable.InputStream) ou, type);

                Info s = (Info) b.extract_Value();

                assertEquals("After Any, sv " + mode, s._message, orig._message);
                assertEquals("After Any, sv " + mode, s._name, orig._name);

                Info a =
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

    {
        Any any = in.read_any();
        if ( any.type().kind().value() == TCKind._tk_objref )
            return any.extract_Object ();
        else
            return any.extract_Value();
    }

    /**
     * Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is
     * an exported RMI-IIOP server object, the tie is found
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

        case TCKind._tk_void:
            return null;

        case TCKind._tk_value:
        case TCKind._tk_value_box:
            return any.extract_Value();

        case TCKind._tk_abstract_interface:
            org.omg.CORBA_2_3.portable.InputStream in23 = (org.omg.CORBA_2_3.portable.InputStream) any
                    .create_input_stream();
            return in23.read_abstract_interface();
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

    {
        Any any = in.read_any();
        if ( any.type().kind().value() == TCKind._tk_objref )
            return any.extract_Object ();
        else
            return any.extract_Value();
    }

    /**
     * Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is
     * an exported RMI-IIOP server object, the tie is found
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

    {
        String testValue = "foo";

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Value(testValue);
        assertEquals(testValue, outAny.extract_Value());

        Any inAny = server.bounce_any(outAny);
        assertEquals(testValue, inAny.extract_Value());
        assertTrue(outAny.equal(inAny));
    }
View Full Code Here

Examples of org.omg.CORBA.Any.extract_Value()

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Value(testValue);
        assertEquals(testValue, outAny.extract_Value());

        Any inAny = server.bounce_any(outAny);
        assertEquals(testValue, inAny.extract_Value());
        assertTrue(outAny.equal(inAny));
    }

    // use any.insert_value with explicit typecode
    public void test_value_box_string2()
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.