Back to index

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