Back to index

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