eSeverity.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.1
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 com.orionsec.jpkif;
00010 
00011 public final class eSeverity {
00012   public final static eSeverity debug = new eSeverity("debug", pkif_moduleJNI.debug_get());
00013   public final static eSeverity info = new eSeverity("info", pkif_moduleJNI.info_get());
00014   public final static eSeverity warning = new eSeverity("warning", pkif_moduleJNI.warning_get());
00015   public final static eSeverity error = new eSeverity("error", pkif_moduleJNI.error_get());
00016   public final static eSeverity fatal = new eSeverity("fatal", pkif_moduleJNI.fatal_get());
00017 
00018   public final int swigValue() {
00019     return swigValue;
00020   }
00021 
00022   public String toString() {
00023     return swigName;
00024   }
00025 
00026   public static eSeverity swigToEnum(int swigValue) {
00027     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00028       return swigValues[swigValue];
00029     for (int i = 0; i < swigValues.length; i++)
00030       if (swigValues[i].swigValue == swigValue)
00031         return swigValues[i];
00032     throw new IllegalArgumentException("No enum " + eSeverity.class + " with value " + swigValue);
00033   }
00034 
00035   private eSeverity(String swigName) {
00036     this.swigName = swigName;
00037     this.swigValue = swigNext++;
00038   }
00039 
00040   private eSeverity(String swigName, int swigValue) {
00041     this.swigName = swigName;
00042     this.swigValue = swigValue;
00043     swigNext = swigValue+1;
00044   }
00045 
00046   private eSeverity(String swigName, eSeverity swigEnum) {
00047     this.swigName = swigName;
00048     this.swigValue = swigEnum.swigValue;
00049     swigNext = this.swigValue+1;
00050   }
00051 
00052   private static eSeverity[] swigValues = { debug, info, warning, error, fatal };
00053   private static int swigNext = 0;
00054   private final int swigValue;
00055   private final String swigName;
00056 }
00057 

Generated on Mon Nov 15 11:15:50 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6