Examples of extract_string()


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

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_string();
        } 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_string()

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_string();
        } 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_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()

            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()

        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()

    addCallPattern(info);

    try
      {
        Any s0 = info.get_slot(ucInitialiser.slot_0);
        if (!s0.extract_string().equals("Slot zero"))
          {
            throw new RuntimeException("Slot 0 value mismatch");
          }

        Any s1 = info.get_slot(ucInitialiser.slot_1);
View Full Code Here

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

          {
            throw new RuntimeException("Slot 0 value mismatch");
          }

        Any s1 = info.get_slot(ucInitialiser.slot_1);
        if (!s1.extract_string().equals("Slot one"))
          {
            throw new RuntimeException("Slot 1 value mismatch");
          }
      }
    catch (Exception e)
View Full Code Here

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

    out.write_any(expectedReturn);

    actualReturn = out.create_input_stream().read_any();

    assertEquals("Any enclosed value", expectedReturn.extract_string(),
                 actualReturn.extract_string()
                );
    assertTrue("Any, types", expectedReturn.type().equal(actualReturn.type()));
  }

  public void testRead_boolean()
View Full Code Here

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

  {
    try
      {
        Any is0 = info.get_slot(ucInitialiser.slot_0);

        if (!is0.extract_string().equals("Initial value for slot 0"))
          {
            throw new RuntimeException("Wrong initial slot 0 value");
          }

        Any is1 = info.get_slot(ucInitialiser.slot_1);
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.