Back to index

nordugrid-arc-nox  1.1.0~rc6
StatusKind.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package nordugrid.arc;
00010 
00011 public final class StatusKind {
00012   public final static StatusKind STATUS_UNDEFINED = new StatusKind("STATUS_UNDEFINED", arcJNI.STATUS_UNDEFINED_get());
00013   public final static StatusKind STATUS_OK = new StatusKind("STATUS_OK", arcJNI.STATUS_OK_get());
00014   public final static StatusKind GENERIC_ERROR = new StatusKind("GENERIC_ERROR", arcJNI.GENERIC_ERROR_get());
00015   public final static StatusKind PARSING_ERROR = new StatusKind("PARSING_ERROR", arcJNI.PARSING_ERROR_get());
00016   public final static StatusKind PROTOCOL_RECOGNIZED_ERROR = new StatusKind("PROTOCOL_RECOGNIZED_ERROR", arcJNI.PROTOCOL_RECOGNIZED_ERROR_get());
00017   public final static StatusKind UNKNOWN_SERVICE_ERROR = new StatusKind("UNKNOWN_SERVICE_ERROR", arcJNI.UNKNOWN_SERVICE_ERROR_get());
00018   public final static StatusKind BUSY_ERROR = new StatusKind("BUSY_ERROR", arcJNI.BUSY_ERROR_get());
00019   public final static StatusKind SESSION_CLOSE = new StatusKind("SESSION_CLOSE", arcJNI.SESSION_CLOSE_get());
00020 
00021   public final int swigValue() {
00022     return swigValue;
00023   }
00024 
00025   public String toString() {
00026     return swigName;
00027   }
00028 
00029   public static StatusKind swigToEnum(int swigValue) {
00030     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00031       return swigValues[swigValue];
00032     for (int i = 0; i < swigValues.length; i++)
00033       if (swigValues[i].swigValue == swigValue)
00034         return swigValues[i];
00035     throw new IllegalArgumentException("No enum " + StatusKind.class + " with value " + swigValue);
00036   }
00037 
00038   private StatusKind(String swigName) {
00039     this.swigName = swigName;
00040     this.swigValue = swigNext++;
00041   }
00042 
00043   private StatusKind(String swigName, int swigValue) {
00044     this.swigName = swigName;
00045     this.swigValue = swigValue;
00046     swigNext = swigValue+1;
00047   }
00048 
00049   private StatusKind(String swigName, StatusKind swigEnum) {
00050     this.swigName = swigName;
00051     this.swigValue = swigEnum.swigValue;
00052     swigNext = this.swigValue+1;
00053   }
00054 
00055   private static StatusKind[] swigValues = { STATUS_UNDEFINED, STATUS_OK, GENERIC_ERROR, PARSING_ERROR, PROTOCOL_RECOGNIZED_ERROR, UNKNOWN_SERVICE_ERROR, BUSY_ERROR, SESSION_CLOSE };
00056   private static int swigNext = 0;
00057   private final int swigValue;
00058   private final String swigName;
00059 }
00060