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