Examples of extract_string()


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

          {
            throw new RuntimeException("Wrong initial slot 0 value");
          }

        Any is1 = info.get_slot(ucInitialiser.slot_1);
        if (!is1.extract_string().equals("Initial value for slot 1"))
          {
            throw new RuntimeException("Wrong initial slot 1 value");
          }

        Any s0 = ORB.init().create_any();
View Full Code Here

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

        s1.next();
        TEST(s1.get_octet() == OCTET_VALUE);
        s1.next();
        av = s1.get_any();

        TEST(av.extract_string().equals(ANY_VALUE));
        s1.next();
        tc = s1.get_typecode();
        s1.next();
        TEST(tc.equal(TYPECODE_VALUE));
        TEST(s1.get_reference() == null);
View Full Code Here

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

        any.insert_string(stringValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:string";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_string);
        String stringResult = result.extract_string();
        assertTrue(stringResult == stringValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        String wstringValue = "test wstring";
View Full Code Here

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

            s1.next();
            TEST(s1.get_octet() == OCTET_VALUE);
            s1.next();
            av = s1.get_any();
            s1.next();
            TEST(av.extract_string().equals(ANY_VALUE));
            tc = s1.get_typecode();
            s1.next();
            TEST(tc.equal(TYPECODE_VALUE));
            TEST(s1.get_reference() == null);
            s1.next();
View Full Code Here

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

            //
            // Test: get_boxed_value
            //
            av = v1.get_boxed_value();
            TEST(av.extract_string().equals("hi"));

            //
            // Test: set_boxed_value
            //
            any.insert_string("bye");
View Full Code Here

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

            org.omg.CORBA_2_3.portable.InputStream in23 = (org.omg.CORBA_2_3.portable.InputStream) any
                    .create_input_stream();
            return in23.read_abstract_interface();

        case TCKind._tk_string:
            return any.extract_string();

        case TCKind._tk_objref:
            org.omg.CORBA.Object ref = any.extract_Object();
            return ref;
View Full Code Here

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

        _any.insert_long(10);
        Property p = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertyHelper.insert(_testData, p);
        Any a = objectUnderTest_.evaluateIdentifier(_testData, "name");
        assertEquals("number", a.extract_string());
    }


    public void testEvaluateNamedValueList() throws Exception {
        Any _any = getORB().create_any();
View Full Code Here

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

        received = pps.try_pull(bh);
        //    received = pps.pull();
        if( bh.value )
        {
          System.out.println("received " + (i++) + " : " +
                             received.extract_string() );
        }
        else
        {
          // we did not get any real any, so we continue
          // polling after a short nap
View Full Code Here

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

    org.omg.CORBA.NVList params = orb.create_list(0);
    Any stringAny = orb.create_any();
    stringAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
    params.add_value( "", stringAny, org.omg.CORBA.ARG_IN.value );
    request.arguments( params );
    impl._notify( stringAny.extract_string() );
    Any s = orb.create_any();
    s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_void ));
    request.set_result( s );
      }
      else if( op.equals("_non_existent") )
View Full Code Here

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

        anyHandler.setValue(a);
        Any resultAny = anyHandler.getValue();

        assertNotNull(resultAny);

        String value = resultAny.extract_string();
        assertEquals("TestMessage", value);

        // Test get/set CorbaTypeMap methods
        CorbaTypeMap resultTM = anyHandler.getTypeMap();
        assertTrue(resultTM.getTargetNamespace().equals(CorbaConstants.NU_WSDL_CORBA));
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.