Urbi SDK Remote for Java  2.7.5
UBinaryType.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 UBinaryType {
00012   BINARY_NONE,
00013   BINARY_UNKNOWN,
00014   BINARY_IMAGE,
00015   BINARY_SOUND;
00016 
00017   public final int swigValue() {
00018     return swigValue;
00019   }
00020 
00021   public static UBinaryType swigToEnum(int swigValue) {
00022     UBinaryType[] swigValues = UBinaryType.class.getEnumConstants();
00023     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00024       return swigValues[swigValue];
00025     for (UBinaryType swigEnum : swigValues)
00026       if (swigEnum.swigValue == swigValue)
00027         return swigEnum;
00028     throw new IllegalArgumentException("No enum " + UBinaryType.class + " with value " + swigValue);
00029   }
00030 
00031   @SuppressWarnings("unused")
00032   private UBinaryType() {
00033     this.swigValue = SwigNext.next++;
00034   }
00035 
00036   @SuppressWarnings("unused")
00037   private UBinaryType(int swigValue) {
00038     this.swigValue = swigValue;
00039     SwigNext.next = swigValue+1;
00040   }
00041 
00042   @SuppressWarnings("unused")
00043   private UBinaryType(UBinaryType swigEnum) {
00044     this.swigValue = swigEnum.swigValue;
00045     SwigNext.next = this.swigValue+1;
00046   }
00047 
00048   private final int swigValue;
00049 
00050   private static class SwigNext {
00051     private static int next = 0;
00052   }
00053 }
00054