Package org.omg.DynamicAny

Examples of org.omg.DynamicAny.DynAny.insert_char()


      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_char ('a');
      assertEquals (msg, 'a', dynAny.get_char());
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here


      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_char ('a');
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
View Full Code Here

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_char ('a');
      assertEquals (msg, 'a', dynAny.get_char());
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_char ('a');
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
View Full Code Here

        DynAny dyn_any =
            dynFactory.create_dyn_any_from_type_code(
                    orb.get_primitive_tc( TCKind.tk_char ));

        dyn_any.insert_char( 'c' );
        System.out.println("[Client]: Passing a char..." +
                s.generic( dyn_any.to_any() ));

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