package CosTrading;
abstract public class _ImportAttributesImplBase extends org.omg.CORBA.portable.Skeleton implements CosTrading.ImportAttributes {
  protected _ImportAttributesImplBase(java.lang.String name) {
    super(name);
  }
  protected _ImportAttributesImplBase() {
  }
  public java.lang.String[] _ids() {
    return __ids;
  }
  private static java.lang.String[] __ids = {
    "IDL:omg.org/CosTrading/ImportAttributes:1.0"
  };
  public org.omg.CORBA.portable.MethodPointer[] _methods() {
    org.omg.CORBA.portable.MethodPointer[] methods = {
      new org.omg.CORBA.portable.MethodPointer("_get_def_search_card", 0, 0),
      new org.omg.CORBA.portable.MethodPointer("_get_max_search_card", 0, 1),
      new org.omg.CORBA.portable.MethodPointer("_get_def_match_card", 0, 2),
      new org.omg.CORBA.portable.MethodPointer("_get_max_match_card", 0, 3),
      new org.omg.CORBA.portable.MethodPointer("_get_def_return_card", 0, 4),
      new org.omg.CORBA.portable.MethodPointer("_get_max_return_card", 0, 5),
      new org.omg.CORBA.portable.MethodPointer("_get_max_list", 0, 6),
      new org.omg.CORBA.portable.MethodPointer("_get_def_hop_count", 0, 7),
      new org.omg.CORBA.portable.MethodPointer("_get_max_hop_count", 0, 8),
      new org.omg.CORBA.portable.MethodPointer("_get_def_follow_policy", 0, 9),
      new org.omg.CORBA.portable.MethodPointer("_get_max_follow_policy", 0, 10),
    };
    return methods;
  }
  public boolean _execute(org.omg.CORBA.portable.MethodPointer method, org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.OutputStream output) {
    switch(method.interface_id) {
    case 0: {
      return CosTrading._ImportAttributesImplBase._execute(this, method.method_id, input, output); 
    }
    }
    throw new org.omg.CORBA.MARSHAL();
  }
  public static boolean _execute(CosTrading.ImportAttributes _self, int _method_id, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.OutputStream _output) {
    switch(_method_id) {
    case 0: {
      int _result = _self.def_search_card();
      _output.write_ulong(_result);
      return false;
    }
    case 1: {
      int _result = _self.max_search_card();
      _output.write_ulong(_result);
      return false;
    }
    case 2: {
      int _result = _self.def_match_card();
      _output.write_ulong(_result);
      return false;
    }
    case 3: {
      int _result = _self.max_match_card();
      _output.write_ulong(_result);
      return false;
    }
    case 4: {
      int _result = _self.def_return_card();
      _output.write_ulong(_result);
      return false;
    }
    case 5: {
      int _result = _self.max_return_card();
      _output.write_ulong(_result);
      return false;
    }
    case 6: {
      int _result = _self.max_list();
      _output.write_ulong(_result);
      return false;
    }
    case 7: {
      int _result = _self.def_hop_count();
      _output.write_ulong(_result);
      return false;
    }
    case 8: {
      int _result = _self.max_hop_count();
      _output.write_ulong(_result);
      return false;
    }
    case 9: {
      CosTrading.FollowOption _result = _self.def_follow_policy();
      _output.write_long(_result.value());
      return false;
    }
    case 10: {
      CosTrading.FollowOption _result = _self.max_follow_policy();
      _output.write_long(_result.value());
      return false;
    }
    }
    throw new org.omg.CORBA.MARSHAL();
  }
}
