Urbi SDK Remote for Java  2.7.5
LockMode.java
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.4
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 urbi;
00010 
00011 public enum LockMode {
00012   LOCK_NONE,
00013   LOCK_FUNCTION,
00014   LOCK_INSTANCE,
00015   LOCK_CLASS,
00016   LOCK_MODULE;
00017 
00018   public final int swigValue() {
00019     return swigValue;
00020   }
00021 
00022   public static LockMode swigToEnum(int swigValue) {
00023     LockMode[] swigValues = LockMode.class.getEnumConstants();
00024     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00025       return swigValues[swigValue];
00026     for (LockMode swigEnum : swigValues)
00027       if (swigEnum.swigValue == swigValue)
00028         return swigEnum;
00029     throw new IllegalArgumentException("No enum " + LockMode.class + " with value " + swigValue);
00030   }
00031 
00032   @SuppressWarnings("unused")
00033   private LockMode() {
00034     this.swigValue = SwigNext.next++;
00035   }
00036 
00037   @SuppressWarnings("unused")
00038   private LockMode(int swigValue) {
00039     this.swigValue = swigValue;
00040     SwigNext.next = swigValue+1;
00041   }
00042 
00043   @SuppressWarnings("unused")
00044   private LockMode(LockMode swigEnum) {
00045     this.swigValue = swigEnum.swigValue;
00046     SwigNext.next = this.swigValue+1;
00047   }
00048 
00049   private final int swigValue;
00050 
00051   private static class SwigNext {
00052     private static int next = 0;
00053   }
00054 }
00055