public static org.omg.CORBA.IRObject unchecked_narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CORBA.IRObject) return (org.omg.CORBA.IRObject)obj; else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.CORBA._IRObjectStub stub = new org.omg.CORBA._IRObjectStub (); stub._set_delegate(delegate); return stub; } }
public static org.omg.CORBA.IRObject unchecked_narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.IRObject) { return (org.omg.CORBA.IRObject)obj; } else { org.omg.CORBA._IRObjectStub stub; stub = new org.omg.CORBA._IRObjectStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } } }
public static org.omg.CORBA.IRObject unchecked_narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.IRObject) { return (org.omg.CORBA.IRObject)obj; } else { org.omg.CORBA._IRObjectStub stub; stub = new org.omg.CORBA._IRObjectStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } } }
public static IRObject unchecked_narrow(org.omg.CORBA.Object val) { if(val != null) { try { return (IRObject)val; } catch(ClassCastException ex) { } org.omg.CORBA.portable.ObjectImpl _ob_impl; _IRObjectStub _ob_stub = new _IRObjectStub(); _ob_impl = (org.omg.CORBA.portable.ObjectImpl)val; _ob_stub._set_delegate(_ob_impl._get_delegate()); return _ob_stub; } return null; } }
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF (); String[] args = null; java.util.Properties props = null; org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props); try { org.omg.CORBA.Object obj = orb.string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); } finally { orb.destroy() ; } }
public static IRObject read(org.omg.CORBA.portable.InputStream in) { org.omg.CORBA.Object _ob_v = in.read_Object(); try { return (IRObject)_ob_v; } catch(ClassCastException ex) { } org.omg.CORBA.portable.ObjectImpl _ob_impl; _ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v; _IRObjectStub _ob_stub = new _IRObjectStub(); _ob_stub._set_delegate(_ob_impl._get_delegate()); return _ob_stub; }
public static org.omg.CORBA.IRObject narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.IRObject) { return (org.omg.CORBA.IRObject)obj; } else if (obj._is_a("IDL:omg.org/CORBA/IRObject:1.0")) { org.omg.CORBA._IRObjectStub stub; stub = new org.omg.CORBA._IRObjectStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } else { throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); } } public static org.omg.CORBA.IRObject unchecked_narrow(final org.omg.CORBA.Object obj)
public static org.omg.CORBA.IRObject narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.IRObject) { return (org.omg.CORBA.IRObject)obj; } else if (obj._is_a("IDL:omg.org/CORBA/IRObject:1.0")) { org.omg.CORBA._IRObjectStub stub; stub = new org.omg.CORBA._IRObjectStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } else { throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); } } public static org.omg.CORBA.IRObject unchecked_narrow(final org.omg.CORBA.Object obj)
public static org.omg.CORBA.IRObject narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CORBA.IRObject) return (org.omg.CORBA.IRObject)obj; else if (!obj._is_a (id ())) throw new org.omg.CORBA.BAD_PARAM (); else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.CORBA._IRObjectStub stub = new org.omg.CORBA._IRObjectStub (); stub._set_delegate(delegate); return stub; } }
public static IRObject narrow(org.omg.CORBA.Object val) { if(val != null) { try { return (IRObject)val; } catch(ClassCastException ex) { } if(val._is_a(id())) { org.omg.CORBA.portable.ObjectImpl _ob_impl; _IRObjectStub _ob_stub = new _IRObjectStub(); _ob_impl = (org.omg.CORBA.portable.ObjectImpl)val; _ob_stub._set_delegate(_ob_impl._get_delegate()); return _ob_stub; } throw new org.omg.CORBA.BAD_PARAM(); } return null; }