Back to index

nordugrid-arc-nox  1.1.0~rc6
ServiceType.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 ServiceType {
00012   public final static ServiceType COMPUTING = new ServiceType("COMPUTING");
00013   public final static ServiceType INDEX = new ServiceType("INDEX");
00014 
00015   public final int swigValue() {
00016     return swigValue;
00017   }
00018 
00019   public String toString() {
00020     return swigName;
00021   }
00022 
00023   public static ServiceType swigToEnum(int swigValue) {
00024     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00025       return swigValues[swigValue];
00026     for (int i = 0; i < swigValues.length; i++)
00027       if (swigValues[i].swigValue == swigValue)
00028         return swigValues[i];
00029     throw new IllegalArgumentException("No enum " + ServiceType.class + " with value " + swigValue);
00030   }
00031 
00032   private ServiceType(String swigName) {
00033     this.swigName = swigName;
00034     this.swigValue = swigNext++;
00035   }
00036 
00037   private ServiceType(String swigName, int swigValue) {
00038     this.swigName = swigName;
00039     this.swigValue = swigValue;
00040     swigNext = swigValue+1;
00041   }
00042 
00043   private ServiceType(String swigName, ServiceType swigEnum) {
00044     this.swigName = swigName;
00045     this.swigValue = swigEnum.swigValue;
00046     swigNext = this.swigValue+1;
00047   }
00048 
00049   private static ServiceType[] swigValues = { COMPUTING, INDEX };
00050   private static int swigNext = 0;
00051   private final int swigValue;
00052   private final String swigName;
00053 }
00054