Back to index

nordugrid-arc-nox  1.1.0~rc6
LogLevel.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 LogLevel {
00012   public final static LogLevel DEBUG = new LogLevel("DEBUG", arcJNI.DEBUG_get());
00013   public final static LogLevel VERBOSE = new LogLevel("VERBOSE", arcJNI.VERBOSE_get());
00014   public final static LogLevel INFO = new LogLevel("INFO", arcJNI.INFO_get());
00015   public final static LogLevel WARNING = new LogLevel("WARNING", arcJNI.WARNING_get());
00016   public final static LogLevel ERROR = new LogLevel("ERROR", arcJNI.ERROR_get());
00017   public final static LogLevel FATAL = new LogLevel("FATAL", arcJNI.FATAL_get());
00018 
00019   public final int swigValue() {
00020     return swigValue;
00021   }
00022 
00023   public String toString() {
00024     return swigName;
00025   }
00026 
00027   public static LogLevel swigToEnum(int swigValue) {
00028     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00029       return swigValues[swigValue];
00030     for (int i = 0; i < swigValues.length; i++)
00031       if (swigValues[i].swigValue == swigValue)
00032         return swigValues[i];
00033     throw new IllegalArgumentException("No enum " + LogLevel.class + " with value " + swigValue);
00034   }
00035 
00036   private LogLevel(String swigName) {
00037     this.swigName = swigName;
00038     this.swigValue = swigNext++;
00039   }
00040 
00041   private LogLevel(String swigName, int swigValue) {
00042     this.swigName = swigName;
00043     this.swigValue = swigValue;
00044     swigNext = swigValue+1;
00045   }
00046 
00047   private LogLevel(String swigName, LogLevel swigEnum) {
00048     this.swigName = swigName;
00049     this.swigValue = swigEnum.swigValue;
00050     swigNext = this.swigValue+1;
00051   }
00052 
00053   private static LogLevel[] swigValues = { DEBUG, VERBOSE, INFO, WARNING, ERROR, FATAL };
00054   private static int swigNext = 0;
00055   private final int swigValue;
00056   private final String swigName;
00057 }
00058