Package org.omg.DynamicAny.DynAnyPackage

Examples of org.omg.DynamicAny.DynAnyPackage.TypeMismatch


            throw unexpectedException(iv);
         }
      }
      else
      {
         throw new TypeMismatch();
      }
   }
View Full Code Here


      throws InvalidValue, TypeMismatch
   {
      checkDestroyed ();
      if( ! value.type().equivalent( type()) )
      {
         throw new TypeMismatch();
      }

      typeCode = TypeCode.originalType( value.type() );

      try
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_boolean)
      {
         throw new TypeMismatch ();
      }
      any.insert_boolean(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_octet)
      {
         throw new TypeMismatch ();
      }
      any.insert_octet(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_char)
      {
         throw new TypeMismatch ();
      }
      any.insert_char(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_short)
      {
         throw new TypeMismatch ();
      }
      any.insert_short(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_ushort)
      {
         throw new TypeMismatch ();
      }
      any.insert_ushort(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      if( any.type().kind() != org.omg.CORBA.TCKind.tk_long)
      {
         throw new TypeMismatch ();
      }
      any.insert_long(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      ifany.type().kind() != org.omg.CORBA.TCKind.tk_ulong)
      {
         throw new TypeMismatch ();
      }
      any.insert_ulong(value);
   }
View Full Code Here

   {
      checkDestroyed ();
      org.omg.CORBA.Any any = getRepresentation();
      ifany.type().kind() != org.omg.CORBA.TCKind.tk_float)
      {
         throw new TypeMismatch ();
      }
      any.insert_float(value);
   }
View Full Code Here

TOP

Related Classes of org.omg.DynamicAny.DynAnyPackage.TypeMismatch

Copyright © 2018 www.massapicom. 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.