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

x33g5p2x  于2022-01-16 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(126)

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

Any.type介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.HostInfo[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, org.eclipse.persistence.internal.sessions.coordination.corba.sun.SunCORBAConnection that) {
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

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

public static void insert(org.omg.CORBA.Any a, org.eclipse.persistence.internal.sessions.remote.Transporter that) {
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.POAInfo[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, String[] that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.ServerInformation[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, org.jboss.com.sun.org.omg.CORBA.ParameterDescription that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, org.omg.CORBA.DefinitionKind that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, org.omg.CORBA.StructMember that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

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

public static void insert(org.omg.CORBA.Any a, String that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static String[]
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

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

public static void insert(org.omg.CORBA.Any a, org.jboss.com.sun.org.omg.CORBA.AttributeDescription that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static ModuleDescription
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

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

public static void insert(org.omg.CORBA.Any a, String[] that)
{
  org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  a.type(type());
  write(out, that);
  a.read_value(out.create_input_stream(), type());
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static RequestHeader_1_2
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

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

public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotFound that)
{
 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
 a.type (type ());
 write (out, that);
 a.read_value (out.create_input_stream (), type ());
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static TypeMismatch
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

相关文章