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