PKIFServiceType.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.1
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 com.orionsec.jpkif;
00010 
00011 public final class PKIFServiceType {
00012   public final static PKIFServiceType PKIF_TSA = new PKIFServiceType("PKIF_TSA");
00013   public final static PKIFServiceType PKIF_OCSP = new PKIFServiceType("PKIF_OCSP");
00014   public final static PKIFServiceType PKIF_SCVP = new PKIFServiceType("PKIF_SCVP");
00015   public final static PKIFServiceType PKIF_SCVP_VAL_POL = new PKIFServiceType("PKIF_SCVP_VAL_POL");
00016   public final static PKIFServiceType PKIF_NONE = new PKIFServiceType("PKIF_NONE");
00017 
00018   public final int swigValue() {
00019     return swigValue;
00020   }
00021 
00022   public String toString() {
00023     return swigName;
00024   }
00025 
00026   public static PKIFServiceType 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 " + PKIFServiceType.class + " with value " + swigValue);
00033   }
00034 
00035   private PKIFServiceType(String swigName) {
00036     this.swigName = swigName;
00037     this.swigValue = swigNext++;
00038   }
00039 
00040   private PKIFServiceType(String swigName, int swigValue) {
00041     this.swigName = swigName;
00042     this.swigValue = swigValue;
00043     swigNext = swigValue+1;
00044   }
00045 
00046   private PKIFServiceType(String swigName, PKIFServiceType swigEnum) {
00047     this.swigName = swigName;
00048     this.swigValue = swigEnum.swigValue;
00049     swigNext = this.swigValue+1;
00050   }
00051 
00052   private static PKIFServiceType[] swigValues = { PKIF_TSA, PKIF_OCSP, PKIF_SCVP, PKIF_SCVP_VAL_POL, PKIF_NONE };
00053   private static int swigNext = 0;
00054   private final int swigValue;
00055   private final String swigName;
00056 }
00057 

Generated on Mon Nov 15 11:15:55 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6