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

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

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

Any.insert_octet介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Insert a java primitive into an Any.
 * The primitive is assumed to be wrapped in one of the primitive
 * wrapper classes.
 */
public static void insertAnyPrimitive(Any any, Object primitive) {
  Class type = primitive.getClass();
  if (type == Boolean.class)
    any.insert_boolean(((Boolean) primitive).booleanValue());
  else if (type == Character.class)
    any.insert_wchar(((Character) primitive).charValue());
  else if (type == Byte.class)
    any.insert_octet(((Byte) primitive).byteValue());
  else if (type == Short.class)
    any.insert_short(((Short) primitive).shortValue());
  else if (type == Integer.class)
    any.insert_long(((Integer) primitive).intValue());
  else if (type == Long.class)
    any.insert_longlong(((Long) primitive).longValue());
  else if (type == Float.class)
    any.insert_float(((Float) primitive).floatValue());
  else if (type == Double.class)
    any.insert_double(((Double) primitive).doubleValue());
  else
    throw IIOPLogger.ROOT_LOGGER.notAPrimitive(type.getName());
}

代码示例来源:origin: org.jboss.eap/wildfly-iiop-openjdk

/**
 * Insert a java primitive into an Any.
 * The primitive is assumed to be wrapped in one of the primitive
 * wrapper classes.
 */
public static void insertAnyPrimitive(Any any, Object primitive) {
  Class type = primitive.getClass();
  if (type == Boolean.class)
    any.insert_boolean(((Boolean) primitive).booleanValue());
  else if (type == Character.class)
    any.insert_wchar(((Character) primitive).charValue());
  else if (type == Byte.class)
    any.insert_octet(((Byte) primitive).byteValue());
  else if (type == Short.class)
    any.insert_short(((Short) primitive).shortValue());
  else if (type == Integer.class)
    any.insert_long(((Integer) primitive).intValue());
  else if (type == Long.class)
    any.insert_longlong(((Long) primitive).longValue());
  else if (type == Float.class)
    any.insert_float(((Float) primitive).floatValue());
  else if (type == Double.class)
    any.insert_double(((Double) primitive).doubleValue());
  else
    throw IIOPLogger.ROOT_LOGGER.notAPrimitive(type.getName());
}

代码示例来源:origin: org.wildfly/wildfly-iiop-openjdk

/**
 * Insert a java primitive into an Any.
 * The primitive is assumed to be wrapped in one of the primitive
 * wrapper classes.
 */
public static void insertAnyPrimitive(Any any, Object primitive) {
  Class type = primitive.getClass();
  if (type == Boolean.class)
    any.insert_boolean(((Boolean) primitive).booleanValue());
  else if (type == Character.class)
    any.insert_wchar(((Character) primitive).charValue());
  else if (type == Byte.class)
    any.insert_octet(((Byte) primitive).byteValue());
  else if (type == Short.class)
    any.insert_short(((Short) primitive).shortValue());
  else if (type == Integer.class)
    any.insert_long(((Integer) primitive).intValue());
  else if (type == Long.class)
    any.insert_longlong(((Long) primitive).longValue());
  else if (type == Float.class)
    any.insert_float(((Float) primitive).floatValue());
  else if (type == Double.class)
    any.insert_double(((Double) primitive).doubleValue());
  else
    throw IIOPLogger.ROOT_LOGGER.notAPrimitive(type.getName());
}

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

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

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

public void insert_octet(byte 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_octet)
    throw new TypeMismatch();
  any.insert_octet(value);
}

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

public void set_to_default_member ()
  throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
{
  if (status == STATUS_DESTROYED) {
    throw wrapper.dynAnyDestroyed() ;
  }
  int defaultIndex = defaultIndex();
  if (defaultIndex == -1) {
    throw new TypeMismatch();
  }
  try {
    clearData();
    index = 1;
    currentMemberIndex = defaultIndex;
    currentMember = DynAnyUtil.createMostDerivedDynAny(memberType(defaultIndex), orb);
    components = new DynAny[] {discriminator, currentMember};
    Any discriminatorAny = orb.create_any();
    discriminatorAny.insert_octet((byte)0);
    discriminator = DynAnyUtil.createMostDerivedDynAny(discriminatorAny, orb, false);
    representations = REPRESENTATION_COMPONENTS;
  } catch (InconsistentTypeCode ictc) {}
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallTreatmentTypeHelper.insert(label_any, org.csapi.cc.TpCallTreatmentType.P_CALL_TREATMENT_SIAR);
      members[1] = new org.omg.CORBA.UnionMember ("InformationToSend", label_any, org.csapi.ui.TpUIInfoHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpCallAdditionalTreatmentInfo",org.csapi.cc.TpCallTreatmentTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.pam.TpPAMContextNameHelper.insert(label_any, org.csapi.pam.TpPAMContextName.PAM_CONTEXT_COMMUNICATION);
      members[1] = new org.omg.CORBA.UnionMember ("CommunicationContext", label_any, org.csapi.pam.TpPAMCommunicationContextHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpPAMContextData",org.csapi.pam.TpPAMContextNameHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.dsc.TpDataSessionReportTypeHelper.insert(label_any, org.csapi.dsc.TpDataSessionReportType.P_DATA_SESSION_REPORT_DISCONNECT);
      members[1] = new org.omg.CORBA.UnionMember ("DataSessionDisconnect", label_any, org.csapi.dsc.TpDataSessionReleaseCauseHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpDataSessionAdditionalReportInfo",org.csapi.dsc.TpDataSessionReportTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.dsc.TpDataSessionErrorTypeHelper.insert(label_any, org.csapi.dsc.TpDataSessionErrorType.P_DATA_SESSION_ERROR_INVALID_ADDRESS);
      members[1] = new org.omg.CORBA.UnionMember ("DataSessionErrorInvalidAddress", label_any, org.csapi.TpAddressErrorHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpDataSessionAdditionalErrorInfo",org.csapi.dsc.TpDataSessionErrorTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.gms.TpMessagingEventNameHelper.insert(label_any, org.csapi.gms.TpMessagingEventName.P_EVENT_GMS_NEW_MESSAGE_ARRIVED);
      members[1] = new org.omg.CORBA.UnionMember ("EventGMSNewMessageArrived", label_any, org.csapi.gms.TpGMSNewMessageArrivedCriteriaHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpMessagingEventCriteria",org.csapi.gms.TpMessagingEventNameHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallErrorTypeHelper.insert(label_any, org.csapi.cc.TpCallErrorType.P_CALL_ERROR_INVALID_ADDRESS);
      members[1] = new org.omg.CORBA.UnionMember ("CallErrorInvalidAddress", label_any, org.csapi.TpAddressErrorHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpCallAdditionalErrorInfo",org.csapi.cc.TpCallErrorTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallPartyToChargeTypeHelper.insert(label_any, org.csapi.cc.TpCallPartyToChargeType.P_CALL_PARTY_SPECIAL);
      members[1] = new org.omg.CORBA.UnionMember ("CallPartySpecial", label_any, org.csapi.TpAddressHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpCallPartyToChargeAdditionalInfo",org.csapi.cc.TpCallPartyToChargeTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.pam.TpPAMPreferenceTypeHelper.insert(label_any, org.csapi.pam.TpPAMPreferenceType.PAM_EXTERNAL_CONTROL);
      members[1] = new org.omg.CORBA.UnionMember ("ExternalControlInterface", label_any, org.omg.CORBA.ORB.init().create_interface_tc("IDL:org/csapi/pam/access/IpAppPAMPreferenceCheck:1.0", "IpAppPAMPreferenceCheck"),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpPAMPreferenceData",org.csapi.pam.TpPAMPreferenceTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[3];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.cccs.TpConfPolicyTypeHelper.insert(label_any, org.csapi.cc.cccs.TpConfPolicyType.P_CONFERENCE_POLICY_MONOMEDIA);
      members[2] = new org.omg.CORBA.UnionMember ("MonoMedia", label_any, org.csapi.cc.cccs.TpMonoMediaConfPolicyHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.cccs.TpConfPolicyTypeHelper.insert(label_any, org.csapi.cc.cccs.TpConfPolicyType.P_CONFERENCE_POLICY_MULTIMEDIA);
      members[1] = new org.omg.CORBA.UnionMember ("MultiMedia", label_any, org.csapi.cc.cccs.TpMultiMediaConfPolicyHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpConfPolicy",org.csapi.cc.cccs.TpConfPolicyTypeHelper.type(), members);
    }
    return _type;
  }
}

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

public static org.omg.CORBA.TypeCode type ()
{
  if (_type == null)
  {
    synchronized(ExternalEndpointConnectorHelper.class)
    {
      if (_type == null)
      {
    org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
    org.omg.CORBA.Any label_any;
    label_any = org.omg.CORBA.ORB.init().create_any ();
    org.omg.CosBridgeAdmin.MessageTypeHelper.insert(label_any, org.omg.CosBridgeAdmin.MessageType.JMS_MESSAGE);
    members[0] = new org.omg.CORBA.UnionMember ("destination", label_any, org.omg.CosBridgeAdmin.JMSDestinationHelper.type(),null);
    label_any = org.omg.CORBA.ORB.init().create_any ();
    label_any.insert_octet ((byte)0);
    members[1] = new org.omg.CORBA.UnionMember ("channel_id", label_any, org.omg.CORBA.ORB.init().create_alias_tc(org.omg.CosNotifyChannelAdmin.ChannelIDHelper.id(), "ChannelID",org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3))),null);
     _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"ExternalEndpointConnector",org.omg.CORBA.ORB.init().create_enum_tc(org.omg.CosBridgeAdmin.MessageTypeHelper.id(),"MessageType",new String[]{"JMS_MESSAGE","STRUCTURED_EVENT","SEQUENCE_EVENT"}), members);
      }
    }
  }
    return _type;
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[3];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.gccs.TpCallReportTypeHelper.insert(label_any, org.csapi.cc.gccs.TpCallReportType.P_CALL_REPORT_NO_ANSWER);
      members[2] = new org.omg.CORBA.UnionMember ("NoAnswerDuration", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.gccs.TpCallReportTypeHelper.insert(label_any, org.csapi.cc.gccs.TpCallReportType.P_CALL_REPORT_SERVICE_CODE);
      members[1] = new org.omg.CORBA.UnionMember ("ServiceCode", label_any, org.csapi.cc.TpCallServiceCodeHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpCallAdditionalReportCriteria",org.csapi.cc.gccs.TpCallReportTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[4];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefType.P_APP_MULTIPARTY_CALL_CALLBACK);
      members[3] = new org.omg.CORBA.UnionMember ("AppMultiPartyCall", label_any, org.omg.CORBA.ORB.init().create_interface_tc("IDL:org/csapi/cc/mpccs/IpAppMultiPartyCall:1.0", "IpAppMultiPartyCall"),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefType.P_APP_CALL_LEG_CALLBACK);
      members[2] = new org.omg.CORBA.UnionMember ("AppCallLeg", label_any, org.omg.CORBA.ORB.init().create_interface_tc("IDL:org/csapi/cc/mpccs/IpAppCallLeg:1.0", "IpAppCallLeg"),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefType.P_APP_CALL_AND_CALL_LEG_CALLBACK);
      members[1] = new org.omg.CORBA.UnionMember ("AppMultiPartyCallAndCallLeg", label_any, org.csapi.cc.mpccs.TpAppCallLegCallBackHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpAppMultiPartyCallBack",org.csapi.cc.mpccs.TpAppMultiPartyCallBackRefTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[4];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefType.P_APP_MULTIMEDIA_CALL_CALLBACK);
      members[3] = new org.omg.CORBA.UnionMember ("AppMultiMediaCall", label_any, org.omg.CORBA.ORB.init().create_interface_tc("IDL:org/csapi/cc/mmccs/IpAppMultiMediaCall:1.0", "IpAppMultiMediaCall"),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefType.P_APP_CALL_LEG_CALLBACK);
      members[2] = new org.omg.CORBA.UnionMember ("AppMultiMediaCallLeg", label_any, org.omg.CORBA.ORB.init().create_interface_tc("IDL:org/csapi/cc/mmccs/IpAppMultiMediaCallLeg:1.0", "IpAppMultiMediaCallLeg"),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefTypeHelper.insert(label_any, org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefType.P_APP_CALL_AND_CALL_LEG_CALLBACK);
      members[1] = new org.omg.CORBA.UnionMember ("AppMultiMediaCallAndCallLeg", label_any, org.csapi.cc.mmccs.TpAppMultiMediaCallLegCallBackHelper.type(),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpAppMultiMediaCallBack",org.csapi.cc.mmccs.TpAppMultiMediaCallBackRefTypeHelper.type(), members);
    }
    return _type;
  }
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static org.omg.CORBA.TypeCode type ()
  {
    if (_type == null)
    {
      org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[6];
      org.omg.CORBA.Any label_any;
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallEventTypeHelper.insert(label_any, org.csapi.cc.TpCallEventType.P_CALL_EVENT_ADDRESS_COLLECTED);
      members[5] = new org.omg.CORBA.UnionMember ("MinAddressLength", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallEventTypeHelper.insert(label_any, org.csapi.cc.TpCallEventType.P_CALL_EVENT_ORIGINATING_SERVICE_CODE);
      members[4] = new org.omg.CORBA.UnionMember ("OriginatingServiceCode", label_any, org.omg.CORBA.ORB.init().create_sequence_tc(0, org.csapi.cc.TpCallServiceCodeHelper.type()),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallEventTypeHelper.insert(label_any, org.csapi.cc.TpCallEventType.P_CALL_EVENT_ORIGINATING_RELEASE);
      members[3] = new org.omg.CORBA.UnionMember ("OriginatingReleaseCauseSet", label_any, org.omg.CORBA.ORB.init().create_sequence_tc(0, org.csapi.cc.TpReleaseCauseHelper.type()),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallEventTypeHelper.insert(label_any, org.csapi.cc.TpCallEventType.P_CALL_EVENT_TERMINATING_RELEASE);
      members[2] = new org.omg.CORBA.UnionMember ("TerminatingReleaseCauseSet", label_any, org.omg.CORBA.ORB.init().create_sequence_tc(0, org.csapi.cc.TpReleaseCauseHelper.type()),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      org.csapi.cc.TpCallEventTypeHelper.insert(label_any, org.csapi.cc.TpCallEventType.P_CALL_EVENT_TERMINATING_SERVICE_CODE);
      members[1] = new org.omg.CORBA.UnionMember ("TerminatingServiceCode", label_any, org.omg.CORBA.ORB.init().create_sequence_tc(0, org.csapi.cc.TpCallServiceCodeHelper.type()),null);
      label_any = org.omg.CORBA.ORB.init().create_any ();
      label_any.insert_octet ((byte)0);
      members[0] = new org.omg.CORBA.UnionMember ("Dummy", label_any, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)),null);
       _type = org.omg.CORBA.ORB.init().create_union_tc(id(),"TpAdditionalCallEventCriteria",org.csapi.cc.TpCallEventTypeHelper.type(), members);
    }
    return _type;
  }
}

相关文章