PADDING.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 PADDING {
00012 public final static PADDING NOPADDING = new PADDING("NOPADDING");
00013 public final static PADDING PKCS5 = new PADDING("PKCS5");
00014
00015 public final int swigValue() {
00016 return swigValue;
00017 }
00018
00019 public String toString() {
00020 return swigName;
00021 }
00022
00023 public static PADDING 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 " + PADDING.class + " with value " + swigValue);
00030 }
00031
00032 private PADDING(String swigName) {
00033 this.swigName = swigName;
00034 this.swigValue = swigNext++;
00035 }
00036
00037 private PADDING(String swigName, int swigValue) {
00038 this.swigName = swigName;
00039 this.swigValue = swigValue;
00040 swigNext = swigValue+1;
00041 }
00042
00043 private PADDING(String swigName, PADDING swigEnum) {
00044 this.swigName = swigName;
00045 this.swigValue = swigEnum.swigValue;
00046 swigNext = this.swigValue+1;
00047 }
00048
00049 private static PADDING[] swigValues = { NOPADDING, PKCS5 };
00050 private static int swigNext = 0;
00051 private final int swigValue;
00052 private final String swigName;
00053 }
00054