Back to index

nordugrid-arc-nox  1.1.0~rc6
TimeFormat.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 TimeFormat {
00012   public final static TimeFormat MDSTime = new TimeFormat("MDSTime");
00013   public final static TimeFormat ASCTime = new TimeFormat("ASCTime");
00014   public final static TimeFormat UserTime = new TimeFormat("UserTime");
00015   public final static TimeFormat ISOTime = new TimeFormat("ISOTime");
00016   public final static TimeFormat UTCTime = new TimeFormat("UTCTime");
00017   public final static TimeFormat RFC1123Time = new TimeFormat("RFC1123Time");
00018 
00019   public final int swigValue() {
00020     return swigValue;
00021   }
00022 
00023   public String toString() {
00024     return swigName;
00025   }
00026 
00027   public static TimeFormat 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 " + TimeFormat.class + " with value " + swigValue);
00034   }
00035 
00036   private TimeFormat(String swigName) {
00037     this.swigName = swigName;
00038     this.swigValue = swigNext++;
00039   }
00040 
00041   private TimeFormat(String swigName, int swigValue) {
00042     this.swigName = swigName;
00043     this.swigValue = swigValue;
00044     swigNext = swigValue+1;
00045   }
00046 
00047   private TimeFormat(String swigName, TimeFormat swigEnum) {
00048     this.swigName = swigName;
00049     this.swigValue = swigEnum.swigValue;
00050     swigNext = this.swigValue+1;
00051   }
00052 
00053   private static TimeFormat[] swigValues = { MDSTime, ASCTime, UserTime, ISOTime, UTCTime, RFC1123Time };
00054   private static int swigNext = 0;
00055   private final int swigValue;
00056   private final String swigName;
00057 }
00058