public static org.omg.CORBA.WstringDef unchecked_narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CORBA.WstringDef) return (org.omg.CORBA.WstringDef)obj; else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.CORBA._WstringDefStub stub = new org.omg.CORBA._WstringDefStub (); stub._set_delegate(delegate); return stub; } }
public static WstringDef unchecked_narrow(org.omg.CORBA.Object val) { if(val != null) { try { return (WstringDef)val; } catch(ClassCastException ex) { } org.omg.CORBA.portable.ObjectImpl _ob_impl; _WstringDefStub _ob_stub = new _WstringDefStub(); _ob_impl = (org.omg.CORBA.portable.ObjectImpl)val; _ob_stub._set_delegate(_ob_impl._get_delegate()); return _ob_stub; } return null; } }
public static org.omg.CORBA.WstringDef unchecked_narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.WstringDef) { return (org.omg.CORBA.WstringDef)obj; } else { org.omg.CORBA._WstringDefStub stub; stub = new org.omg.CORBA._WstringDefStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } } }
public static org.omg.CORBA.WstringDef unchecked_narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.WstringDef) { return (org.omg.CORBA.WstringDef)obj; } else { org.omg.CORBA._WstringDefStub stub; stub = new org.omg.CORBA._WstringDefStub(); stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } } }
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 WstringDef read(org.omg.CORBA.portable.InputStream in) { org.omg.CORBA.Object _ob_v = in.read_Object(); try { return (WstringDef)_ob_v; } catch(ClassCastException ex) { } org.omg.CORBA.portable.ObjectImpl _ob_impl; _ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v; _WstringDefStub _ob_stub = new _WstringDefStub(); _ob_stub._set_delegate(_ob_impl._get_delegate()); return _ob_stub; }
public static org.omg.CORBA.WstringDef narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.WstringDef) { return (org.omg.CORBA.WstringDef)obj; } else if (obj._is_a("IDL:omg.org/CORBA/WstringDef:1.0")) { org.omg.CORBA._WstringDefStub stub; stub = new org.omg.CORBA._WstringDefStub(); 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.WstringDef unchecked_narrow(final org.omg.CORBA.Object obj)
public static org.omg.CORBA.WstringDef narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.CORBA.WstringDef) { return (org.omg.CORBA.WstringDef)obj; } else if (obj._is_a("IDL:omg.org/CORBA/WstringDef:1.0")) { org.omg.CORBA._WstringDefStub stub; stub = new org.omg.CORBA._WstringDefStub(); 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.WstringDef unchecked_narrow(final org.omg.CORBA.Object obj)
public static org.omg.CORBA.WstringDef narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CORBA.WstringDef) return (org.omg.CORBA.WstringDef)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._WstringDefStub stub = new org.omg.CORBA._WstringDefStub (); stub._set_delegate(delegate); return stub; } }
public static WstringDef narrow(org.omg.CORBA.Object val) { if(val != null) { try { return (WstringDef)val; } catch(ClassCastException ex) { } if(val._is_a(id())) { org.omg.CORBA.portable.ObjectImpl _ob_impl; _WstringDefStub _ob_stub = new _WstringDefStub(); _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; }