SearchType.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 SearchType {
00012   public final static SearchType ALLCERTS = new SearchType("ALLCERTS");
00013   public final static SearchType ISSUERNAME = new SearchType("ISSUERNAME");
00014   public final static SearchType SUBJECTNAME = new SearchType("SUBJECTNAME");
00015   public final static SearchType KEYID = new SearchType("KEYID");
00016   public final static SearchType ISSUERSERIAL = new SearchType("ISSUERSERIAL");
00017 
00018   public final int swigValue() {
00019     return swigValue;
00020   }
00021 
00022   public String toString() {
00023     return swigName;
00024   }
00025 
00026   public static SearchType 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 " + SearchType.class + " with value " + swigValue);
00033   }
00034 
00035   private SearchType(String swigName) {
00036     this.swigName = swigName;
00037     this.swigValue = swigNext++;
00038   }
00039 
00040   private SearchType(String swigName, int swigValue) {
00041     this.swigName = swigName;
00042     this.swigValue = swigValue;
00043     swigNext = swigValue+1;
00044   }
00045 
00046   private SearchType(String swigName, SearchType swigEnum) {
00047     this.swigName = swigName;
00048     this.swigValue = swigEnum.swigValue;
00049     swigNext = this.swigValue+1;
00050   }
00051 
00052   private static SearchType[] swigValues = { ALLCERTS, ISSUERNAME, SUBJECTNAME, KEYID, ISSUERSERIAL };
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:56 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6