Examples of insert_Object()


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

        if (value == null)
            any.insert_Value(null, type);
        else if (value instanceof java.io.Serializable)
            any.insert_Value((java.io.Serializable) value, type);
        else if (value instanceof org.omg.CORBA.Object)
            any.insert_Object((org.omg.CORBA.Object) value, type);
        else
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();

        notifyParent();
    }
View Full Code Here

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

        if (value == null)
            any.insert_Value(null, type);
        else if (value instanceof java.io.Serializable)
            any.insert_Value((java.io.Serializable) value, type);
        else if (value instanceof org.omg.CORBA.Object)
            any.insert_Object((org.omg.CORBA.Object) value, type);
        else
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();

        notifyParent();
    }
View Full Code Here

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

        } else if (obj instanceof String) {
            any.insert_Value((String) obj);

        } else if (obj instanceof org.omg.CORBA.Object) {
            any.insert_Object((org.omg.CORBA.Object) obj);

        } else if (obj instanceof Any) {
            any.insert_any((Any) obj);

        } else if (obj instanceof IDLEntity) {
View Full Code Here

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

                        .toStub(ro);
            } catch (java.rmi.NoSuchObjectException ex) {
                throw new org.omg.CORBA.MARSHAL("object not exported " + ro);
            }

            any.insert_Object((org.omg.CORBA.Object) corba_obj);

        } else if (obj instanceof Serializable || obj instanceof Externalizable) {

            any.insert_Value((Serializable) obj);
View Full Code Here

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

        // Make sure we have a connected object...
        java.lang.Object newObj = Utility.autoConnect(obj,orb,false);

        if (newObj instanceof org.omg.CORBA.Object) {
            any.insert_Object((org.omg.CORBA.Object)newObj);
        } else {
            if (newObj == null) {
                // Handle the null case, including backwards
                // compatibility issues
                any.insert_Value(null, createTypeCodeForNull(orb));
View Full Code Here

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

                // Doesn't erase the type of bounded string
                returnValue.insert_wstring("");
                break;
            case TCKind._tk_objref:
                // nil for object references
                returnValue.insert_Object(null);
                break;
            case TCKind._tk_TypeCode:
                // a type code with a TCKind value of tk_null for type codes
                // We can reuse the type code that's already in the any.
                returnValue.insert_TypeCode(returnValue.type());
View Full Code Here

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

        } else if (obj instanceof String) {
            any.insert_Value((String) obj);

        } else if (obj instanceof org.omg.CORBA.Object) {
            any.insert_Object((org.omg.CORBA.Object) obj);

        } else if (obj instanceof Any) {
            any.insert_any((Any) obj);

        } else if (obj instanceof IDLEntity) {
View Full Code Here

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

                        .toStub(ro);
            } catch (java.rmi.NoSuchObjectException ex) {
                throw new org.omg.CORBA.MARSHAL("object not exported " + ro);
            }

            any.insert_Object((org.omg.CORBA.Object) corba_obj);

        } else if (obj instanceof Serializable || obj instanceof Externalizable) {

            any.insert_Value((Serializable) obj);
View Full Code Here

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

        // Make sure we have a connected object...
        java.lang.Object newObj = Utility.autoConnect(obj,orb,false);

        if (newObj instanceof org.omg.CORBA.Object) {
            any.insert_Object((org.omg.CORBA.Object)newObj);
        } else {
            if (newObj == null) {
                // Handle the null case, including backwards
                // compatibility issues
                any.insert_Value(null, createTypeCodeForNull(orb));
View Full Code Here

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

                // Doesn't erase the type of bounded string
                returnValue.insert_wstring("");
                break;
            case TCKind._tk_objref:
                // nil for object references
                returnValue.insert_Object(null);
                break;
            case TCKind._tk_TypeCode:
                // a type code with a TCKind value of tk_null for type codes
                // We can reuse the type code that's already in the any.
                returnValue.insert_TypeCode(returnValue.type());
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.