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

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

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

Any.insert_any介绍

暂无

代码示例

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

public void insert_any(org.omg.CORBA.Any value)
  throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
      org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
  if (status == STATUS_DESTROYED) {
    throw wrapper.dynAnyDestroyed() ;
  }
  if (any.type().kind().value() != TCKind._tk_any)
    throw new TypeMismatch();
  any.insert_any(value);
}

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

public void insert_any(org.omg.CORBA.Any value)
 throws TypeMismatch
{
 checkDestroyed ();
 org.omg.CORBA.Any any = getRepresentation();
 if(  any.type().kind() != org.omg.CORBA.TCKind.tk_any)
 {
   throw new TypeMismatch ();
 }
 any.insert_any(value);
}

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

public void insert_dyn_any (org.omg.DynamicAny.DynAny value)
  throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
      org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
  if (status == STATUS_DESTROYED) {
    throw wrapper.dynAnyDestroyed() ;
  }
  if (any.type().kind().value() != TCKind._tk_any)
    throw new TypeMismatch();
  // _REVISIT_ Copy value here?
  any.insert_any(value.to_any());
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

any.insert_any((Any) obj);

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

returnValue.insert_any(orb.create_any());
  break;
case TCKind._tk_struct:

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

org.jacorb.orb.Any any = (org.jacorb.orb.Any)orb.create_any();
  any.type( orb.get_primitive_tc( TCKind.tk_null ));
  _any.insert_any(any);
  break;
case TCKind._tk_null:

相关文章