TimeType.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public final class TimeType {
00012 public final static TimeType UTCTIME = new TimeType("UTCTIME", pkif_moduleJNI.UTCTIME_get());
00013 public final static TimeType GENERALIZEDTIME = new TimeType("GENERALIZEDTIME", pkif_moduleJNI.GENERALIZEDTIME_get());
00014
00015 public final int swigValue() {
00016 return swigValue;
00017 }
00018
00019 public String toString() {
00020 return swigName;
00021 }
00022
00023 public static TimeType 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 " + TimeType.class + " with value " + swigValue);
00030 }
00031
00032 private TimeType(String swigName) {
00033 this.swigName = swigName;
00034 this.swigValue = swigNext++;
00035 }
00036
00037 private TimeType(String swigName, int swigValue) {
00038 this.swigName = swigName;
00039 this.swigValue = swigValue;
00040 swigNext = swigValue+1;
00041 }
00042
00043 private TimeType(String swigName, TimeType swigEnum) {
00044 this.swigName = swigName;
00045 this.swigValue = swigEnum.swigValue;
00046 swigNext = this.swigValue+1;
00047 }
00048
00049 private static TimeType[] swigValues = { UTCTIME, GENERALIZEDTIME };
00050 private static int swigNext = 0;
00051 private final int swigValue;
00052 private final String swigName;
00053 }
00054