org.omg.CORBA.Object._is_a()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(11.5k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中org.omg.CORBA.Object._is_a()方法的一些代码示例,展示了Object._is_a()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Object._is_a()方法的具体详情如下:
包路径:org.omg.CORBA.Object
类名称:Object
方法名:_is_a

Object._is_a介绍

暂无

代码示例

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.PortableServer.Current narrow (
  org.omg.CORBA.Object obj)
{
  if (obj == null)
    return null;
  else if (obj instanceof org.omg.PortableServer.Current)
    return (org.omg.PortableServer.Current)obj;
  else if (!obj._is_a (id ()))
    throw new org.omg.CORBA.BAD_PARAM ();
  return null;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)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();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)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();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.PortableServer.POA narrow (org.omg.CORBA.Object obj)
  {
    if (obj == null)
      return null;
    else if (obj instanceof org.omg.PortableServer.POA)
      return (org.omg.PortableServer.POA)obj;
    else if (!obj._is_a (id ()))
     throw new org.omg.CORBA.BAD_PARAM ();
    return null;
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)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();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static com.sun.org.omg.SendingContext.CodeBase narrow (org.omg.CORBA.Object obj)
{
  if (obj == null)
    return null;
  else if (obj instanceof com.sun.org.omg.SendingContext.CodeBase)
    return (com.sun.org.omg.SendingContext.CodeBase)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 ();
      return new com.sun.org.omg.SendingContext._CodeBaseStub (delegate);
    }
}

代码示例来源:origin: jboss/jboss-javaee-specs

public static org.jboss.com.sun.org.omg.SendingContext.CodeBase narrow(org.omg.CORBA.Object obj)
{
  if (obj == null)
    return null;
  else if (obj instanceof org.jboss.com.sun.org.omg.SendingContext.CodeBase)
    return (org.jboss.com.sun.org.omg.SendingContext.CodeBase) 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();
    return new org.jboss.com.sun.org.omg.SendingContext._CodeBaseStub(delegate);
  }
}

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

public static org.jboss.com.sun.org.omg.SendingContext.CodeBase narrow(org.omg.CORBA.Object obj)
{
  if (obj == null)
    return null;
  else if (obj instanceof org.jboss.com.sun.org.omg.SendingContext.CodeBase)
    return (org.jboss.com.sun.org.omg.SendingContext.CodeBase) 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();
    return new org.jboss.com.sun.org.omg.SendingContext._CodeBaseStub(delegate);
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.CORBA.Policy narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.CORBA.Policy)
  return (org.omg.CORBA.Policy)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 ();
  return new org.omg.CORBA._PolicyStub (delegate);
 }
}

代码示例来源:origin: itesla/ipst

public static OmcCommunication narrow(org.omg.CORBA.Object obj) {
  if (obj == null) {
    return null;
  } else if (obj instanceof OmcCommunication) {
    return (OmcCommunication) 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();
    _OmcCommunicationStub stub = new _OmcCommunicationStub();
    stub._set_delegate(delegate);
    return stub;
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public static org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection) {
      return (org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection)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.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub stub = new org.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub();
      stub._set_delegate(delegate);
      return stub;
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public static org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection) {
      return (org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection)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.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub stub = new org.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub();
      stub._set_delegate(delegate);
      return stub;
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection) {
      return (org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection)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.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub stub = new org.eclipse.persistence.internal.sessions.coordination.corba.sun._SunCORBAConnectionStub();
      stub._set_delegate(delegate);
      return stub;
    }
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.CORBA.AbstractInterfaceDef narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.CORBA.AbstractInterfaceDef)
  return (org.omg.CORBA.AbstractInterfaceDef)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._AbstractInterfaceDefStub stub = new org.omg.CORBA._AbstractInterfaceDefStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.DynamicAny.DynValueBox narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.DynamicAny.DynValueBox)
  return (org.omg.DynamicAny.DynValueBox)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.DynamicAny._DynValueBoxStub stub = new org.omg.DynamicAny._DynValueBoxStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static com.sun.corba.se.spi.activation.InitialNameService narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof com.sun.corba.se.spi.activation.InitialNameService)
  return (com.sun.corba.se.spi.activation.InitialNameService)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 ();
  com.sun.corba.se.spi.activation._InitialNameServiceStub stub = new com.sun.corba.se.spi.activation._InitialNameServiceStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.PortableServer.ServantActivator narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.PortableServer.ServantActivator)
  return (org.omg.PortableServer.ServantActivator)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.PortableServer._ServantActivatorStub stub = new org.omg.PortableServer._ServantActivatorStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.DynamicAny.DynEnum narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.DynamicAny.DynEnum)
  return (org.omg.DynamicAny.DynEnum)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.DynamicAny._DynEnumStub stub = new org.omg.DynamicAny._DynEnumStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.CORBA.AliasDef narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.CORBA.AliasDef)
  return (org.omg.CORBA.AliasDef)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._AliasDefStub stub = new org.omg.CORBA._AliasDefStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public static org.omg.CORBA.ComponentIR.PublishesDef narrow (org.omg.CORBA.Object obj)
{
 if (obj == null)
  return null;
 else if (obj instanceof org.omg.CORBA.ComponentIR.PublishesDef)
  return (org.omg.CORBA.ComponentIR.PublishesDef)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.ComponentIR._PublishesDefStub stub = new org.omg.CORBA.ComponentIR._PublishesDefStub ();
  stub._set_delegate(delegate);
  return stub;
 }
}

相关文章