Exemplo n.º 1
0
  /** See the description of the <a href="#anyOps">general Any operations.</a> */
  public org.omg.CORBA.Object extract_Object() {
    // debug.log ("extract_Object");
    if (!isInitialized) throw wrapper.extractNotInitialized();

    // Check if the object contained here is of the type in typeCode
    org.omg.CORBA.Object obj = null;
    try {
      obj = (org.omg.CORBA.Object) object;
      if (typeCode.id().equals("IDL:omg.org/CORBA/Object:1.0") || obj._is_a(typeCode.id())) {
        return obj;
      } else {
        throw wrapper.extractObjectIncompatible();
      }
    } catch (Exception ex) {
      throw wrapper.extractObjectFailed(ex);
    }
  }