Back to index

nordugrid-arc-nox  1.1.0~rc6
initializeCredentialsType.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 class initializeCredentialsType {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected initializeCredentialsType(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(initializeCredentialsType obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public initializeCredentialsType() {
00033     this(arcJNI.new_initializeCredentialsType__SWIG_0(), true);
00034   }
00035 
00036   public initializeCredentialsType(initializeCredentialsType.initializeType v) {
00037     this(arcJNI.new_initializeCredentialsType__SWIG_1(v.swigValue()), true);
00038   }
00039 
00040   public final static class initializeType {
00041     public final static initializeType SkipCredentials = new initializeType("SkipCredentials");
00042     public final static initializeType TryCredentials = new initializeType("TryCredentials");
00043     public final static initializeType RequireCredentials = new initializeType("RequireCredentials");
00044 
00045     public final int swigValue() {
00046       return swigValue;
00047     }
00048 
00049     public String toString() {
00050       return swigName;
00051     }
00052 
00053     public static initializeType swigToEnum(int swigValue) {
00054       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00055         return swigValues[swigValue];
00056       for (int i = 0; i < swigValues.length; i++)
00057         if (swigValues[i].swigValue == swigValue)
00058           return swigValues[i];
00059       throw new IllegalArgumentException("No enum " + initializeType.class + " with value " + swigValue);
00060     }
00061 
00062     private initializeType(String swigName) {
00063       this.swigName = swigName;
00064       this.swigValue = swigNext++;
00065     }
00066 
00067     private initializeType(String swigName, int swigValue) {
00068       this.swigName = swigName;
00069       this.swigValue = swigValue;
00070       swigNext = swigValue+1;
00071     }
00072 
00073     private initializeType(String swigName, initializeType swigEnum) {
00074       this.swigName = swigName;
00075       this.swigValue = swigEnum.swigValue;
00076       swigNext = this.swigValue+1;
00077     }
00078 
00079     private static initializeType[] swigValues = { SkipCredentials, TryCredentials, RequireCredentials };
00080     private static int swigNext = 0;
00081     private final int swigValue;
00082     private final String swigName;
00083   }
00084 
00085 }