CACDayOfWeek.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 class CACDayOfWeek {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   public CACDayOfWeek(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   public static long getCPtr(CACDayOfWeek obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   protected void finalize() {
00025     delete();
00026   }
00027 
00028   public synchronized void delete() {
00029     if (swigCPtr != 0) {
00030       if (swigCMemOwn) {
00031         swigCMemOwn = false;
00032         pkif_moduleJNI.delete_CACDayOfWeek(swigCPtr);
00033       }
00034       swigCPtr = 0;
00035     }
00036   }
00037 
00038   public CACDayOfWeek() {
00039     this(pkif_moduleJNI.new_CACDayOfWeek(), true);
00040   }
00041 
00042   public final static class Type {
00043     public final static Type SUNDAY = new Type("SUNDAY", pkif_moduleJNI.CACDayOfWeek_SUNDAY_get());
00044     public final static Type MONDAY = new Type("MONDAY", pkif_moduleJNI.CACDayOfWeek_MONDAY_get());
00045     public final static Type TUESDAY = new Type("TUESDAY", pkif_moduleJNI.CACDayOfWeek_TUESDAY_get());
00046     public final static Type WEDNESDAY = new Type("WEDNESDAY", pkif_moduleJNI.CACDayOfWeek_WEDNESDAY_get());
00047     public final static Type THURSDAY = new Type("THURSDAY", pkif_moduleJNI.CACDayOfWeek_THURSDAY_get());
00048     public final static Type FRIDAY = new Type("FRIDAY", pkif_moduleJNI.CACDayOfWeek_FRIDAY_get());
00049     public final static Type SATURDAY = new Type("SATURDAY", pkif_moduleJNI.CACDayOfWeek_SATURDAY_get());
00050 
00051     public final int swigValue() {
00052       return swigValue;
00053     }
00054 
00055     public String toString() {
00056       return swigName;
00057     }
00058 
00059     public static Type swigToEnum(int swigValue) {
00060       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00061         return swigValues[swigValue];
00062       for (int i = 0; i < swigValues.length; i++)
00063         if (swigValues[i].swigValue == swigValue)
00064           return swigValues[i];
00065       throw new IllegalArgumentException("No enum " + Type.class + " with value " + swigValue);
00066     }
00067 
00068     private Type(String swigName) {
00069       this.swigName = swigName;
00070       this.swigValue = swigNext++;
00071     }
00072 
00073     private Type(String swigName, int swigValue) {
00074       this.swigName = swigName;
00075       this.swigValue = swigValue;
00076       swigNext = swigValue+1;
00077     }
00078 
00079     private Type(String swigName, Type swigEnum) {
00080       this.swigName = swigName;
00081       this.swigValue = swigEnum.swigValue;
00082       swigNext = this.swigValue+1;
00083     }
00084 
00085     private static Type[] swigValues = { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY };
00086     private static int swigNext = 0;
00087     private final int swigValue;
00088     private final String swigName;
00089   }
00090 
00091 }

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