Package org.omg.CORBA

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


            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

            //
            // 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

            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

        _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

        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

    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

        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

  {
      String threadId = null;
     
      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);

        OTSImpleManager.current().contextManager().purgeActions(threadId);
       
View Full Code Here

     * on it already. If so, use it.
     */

    if (localData.type().kind().value() != TCKind._tk_null)
    {
        if ((threadId = localData.extract_string()) == null)
      throw new UNKNOWN(jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.javaidl.interceptors.context.invalidparam"));
    }
    else
        threadId = ThreadUtil.getThreadId() ;

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.