• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java EmptyExceptionHolder类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中gnu.CORBA.EmptyExceptionHolder的典型用法代码示例。如果您正苦于以下问题:Java EmptyExceptionHolder类的具体用法?Java EmptyExceptionHolder怎么用?Java EmptyExceptionHolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

EmptyExceptionHolder类属于gnu.CORBA包,在下文中一共展示了EmptyExceptionHolder类的38个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the UnknownEncoding from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain UnknownEncoding.
 */
public static UnknownEncoding extract(Any any)
{
  try
    {
      EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable();
      return (UnknownEncoding) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("UnknownEncoding expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:21,
代码来源:UnknownEncodingHelper.java

示例2: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidTypeForEncoding from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain
 * InvalidTypeForEncoding.
 */
public static InvalidTypeForEncoding extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidTypeForEncoding) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad =
        new BAD_OPERATION("InvalidTypeForEncoding expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:24,
代码来源:InvalidTypeForEncodingHelper.java

示例3: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the TypeMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain TypeMismatch.
 */
public static TypeMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (TypeMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("TypeMismatch expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:TypeMismatchHelper.java

示例4: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the FormatMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain FormatMismatch.
 */
public static FormatMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (FormatMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("FormatMismatch expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:FormatMismatchHelper.java

示例5: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidValue from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain InvalidValue.
 */
public static InvalidValue extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidValue) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InvalidValue expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:InvalidValueHelper.java

示例6: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the TypeMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain TypeMismatch.
 */
public static TypeMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (TypeMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("TypeMismatch expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:TypeMismatchHelper.java

示例7: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InconsistentTypeCode from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain
 * InconsistentTypeCode.
 */
public static InconsistentTypeCode extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InconsistentTypeCode) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InconsistentTypeCode expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:23,
代码来源:InconsistentTypeCodeHelper.java

示例8: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the WrongTransaction from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain WrongTransaction.
 */
public static WrongTransaction extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (WrongTransaction) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("WrongTransaction expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:WrongTransactionHelper.java

示例9: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the NoContext from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain NoContext.
 */
public static NoContext extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (NoContext) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("NoContext expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:NoContextHelper.java

示例10: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the AdapterInactive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain AdapterInactive.
 */
public static AdapterInactive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (AdapterInactive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("AdapterInactive expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:AdapterInactiveHelper.java

示例11: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the AdapterAlreadyExists from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain AdapterAlreadyExists.
 */
public static AdapterAlreadyExists extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (AdapterAlreadyExists) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("AdapterAlreadyExists expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:AdapterAlreadyExistsHelper.java

示例12: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the AdapterNonExistent from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain AdapterNonExistent.
 */
public static AdapterNonExistent extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (AdapterNonExistent) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("AdapterNonExistent expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:AdapterNonExistentHelper.java

示例13: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ServantNotActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ServantNotActive.
 */
public static ServantNotActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ServantNotActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ServantNotActive expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:ServantNotActiveHelper.java

示例14: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ServantAlreadyActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ServantAlreadyActive.
 */
public static ServantAlreadyActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ServantAlreadyActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ServantAlreadyActive expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:ServantAlreadyActiveHelper.java

示例15: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the WrongPolicy from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain WrongPolicy.
 */
public static WrongPolicy extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (WrongPolicy) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("WrongPolicy expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:WrongPolicyHelper.java

示例16: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the NoServant from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain NoServant.
 */
public static NoServant extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (NoServant) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("NoServant expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:NoServantHelper.java

示例17: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ObjectAlreadyActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ObjectAlreadyActive.
 */
public static ObjectAlreadyActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ObjectAlreadyActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ObjectAlreadyActive expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:ObjectAlreadyActiveHelper.java

示例18: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ObjectNotActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ObjectNotActive.
 */
public static ObjectNotActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ObjectNotActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ObjectNotActive expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:ObjectNotActiveHelper.java

示例19: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the WrongAdapter from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain WrongAdapter.
 */
public static WrongAdapter extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (WrongAdapter) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("WrongAdapter expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:WrongAdapterHelper.java

示例20: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidSlot from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain InvalidSlot.
 */
public static InvalidSlot extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidSlot) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InvalidSlot expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:InvalidSlotHelper.java

示例21: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidName from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain InvalidName.
 */
public static InvalidName extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidName) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InvalidName expected");
      bad.minor = Minor.Any;
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:InvalidNameHelper.java

示例22: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the UnknownEncoding from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain UnknownEncoding.
 */
public static UnknownEncoding extract(Any any)
{
  try
    {
      EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable();
      return (UnknownEncoding) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("UnknownEncoding expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;        
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:21,
代码来源:UnknownEncodingHelper.java

示例23: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidTypeForEncoding from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain
 * InvalidTypeForEncoding.
 */
public static InvalidTypeForEncoding extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidTypeForEncoding) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad =
        new BAD_OPERATION("InvalidTypeForEncoding expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:24,
代码来源:InvalidTypeForEncodingHelper.java

示例24: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the TypeMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain TypeMismatch.
 */
public static TypeMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (TypeMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("TypeMismatch expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:TypeMismatchHelper.java

示例25: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the FormatMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain FormatMismatch.
 */
public static FormatMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (FormatMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("FormatMismatch expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:FormatMismatchHelper.java

示例26: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InvalidValue from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain InvalidValue.
 */
public static InvalidValue extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InvalidValue) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InvalidValue expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;        
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:InvalidValueHelper.java

示例27: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the TypeMismatch from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain TypeMismatch.
 */
public static TypeMismatch extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (TypeMismatch) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("TypeMismatch expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;        
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:TypeMismatchHelper.java

示例28: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the InconsistentTypeCode from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain
 * InconsistentTypeCode.
 */
public static InconsistentTypeCode extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (InconsistentTypeCode) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("InconsistentTypeCode expected");
      bad.initCause(cex);
      bad.minor = Minor.Any;        
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:23,
代码来源:InconsistentTypeCodeHelper.java

示例29: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the NoContext from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain NoContext.
 */
public static NoContext extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (NoContext) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("NoContext expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:NoContextHelper.java

示例30: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the AdapterInactive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain AdapterInactive.
 */
public static AdapterInactive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (AdapterInactive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("AdapterInactive expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:AdapterInactiveHelper.java

示例31: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the AdapterNonExistent from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain AdapterNonExistent.
 */
public static AdapterNonExistent extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (AdapterNonExistent) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("AdapterNonExistent expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:AdapterNonExistentHelper.java

示例32: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ServantNotActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ServantNotActive.
 */
public static ServantNotActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ServantNotActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ServantNotActive expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:ServantNotActiveHelper.java

示例33: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ServantAlreadyActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ServantAlreadyActive.
 */
public static ServantAlreadyActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ServantAlreadyActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ServantAlreadyActive expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:ServantAlreadyActiveHelper.java

示例34: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the WrongPolicy from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain WrongPolicy.
 */
public static WrongPolicy extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (WrongPolicy) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("WrongPolicy expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:WrongPolicyHelper.java

示例35: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the NoServant from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain NoServant.
 */
public static NoServant extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (NoServant) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("NoServant expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:NoServantHelper.java

示例36: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ObjectAlreadyActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ObjectAlreadyActive.
 */
public static ObjectAlreadyActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ObjectAlreadyActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ObjectAlreadyActive expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:ObjectAlreadyActiveHelper.java

示例37: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the ObjectNotActive from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain ObjectNotActive.
 */
public static ObjectNotActive extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (ObjectNotActive) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("ObjectNotActive expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:ObjectNotActiveHelper.java

示例38: extract

点赞 3

import gnu.CORBA.EmptyExceptionHolder; //导入依赖的package包/类
/**
 * Extract the WrongAdapter from given Any.
 *
 * @throws BAD_OPERATION if the passed Any does not contain WrongAdapter.
 */
public static WrongAdapter extract(Any any)
{
  try
    {
      EmptyExceptionHolder h =
        (EmptyExceptionHolder) any.extract_Streamable();
      return (WrongAdapter) h.value;
    }
  catch (ClassCastException cex)
    {
      BAD_OPERATION bad = new BAD_OPERATION("WrongAdapter expected");
      bad.minor = Minor.Any;        
      bad.initCause(cex);
      throw bad;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:22,
代码来源:WrongAdapterHelper.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)