Back to index

nordugrid-arc-nox  1.1.0~rc6
Time.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
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 nordugrid.arc;
00010 
00011 public class Time {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected Time(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(Time obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public Time() {
00033     this(arcJNI.new_Time__SWIG_0(), true);
00034   }
00035 
00036   public Time(SWIGTYPE_p_time_t arg0) {
00037     this(arcJNI.new_Time__SWIG_1(SWIGTYPE_p_time_t.getCPtr(arg0)), true);
00038   }
00039 
00040   public Time(String arg0) {
00041     this(arcJNI.new_Time__SWIG_2(arg0), true);
00042   }
00043 
00044   public void SetTime(SWIGTYPE_p_time_t arg0) {
00045     arcJNI.Time_SetTime(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(arg0));
00046   }
00047 
00048   public SWIGTYPE_p_time_t GetTime() {
00049     return new SWIGTYPE_p_time_t(arcJNI.Time_GetTime(swigCPtr, this), true);
00050   }
00051 
00052   public String toString() {
00053     return arcJNI.Time_toString(swigCPtr, this);
00054   }
00055 
00056   public String str(TimeFormat arg0) {
00057     return arcJNI.Time_str__SWIG_0(swigCPtr, this, arg0.swigValue());
00058   }
00059 
00060   public String str() {
00061     return arcJNI.Time_str__SWIG_1(swigCPtr, this);
00062   }
00063 
00064   public static void SetFormat(TimeFormat arg0) {
00065     arcJNI.Time_SetFormat(arg0.swigValue());
00066   }
00067 
00068   public static TimeFormat GetFormat() {
00069     return TimeFormat.swigToEnum(arcJNI.Time_GetFormat());
00070   }
00071 
00072   public final static int YEAR = arcJNI.Time_YEAR_get();
00073   public final static int MONTH = arcJNI.Time_MONTH_get();
00074   public final static int WEEK = arcJNI.Time_WEEK_get();
00075   public final static int DAY = arcJNI.Time_DAY_get();
00076   public final static int HOUR = arcJNI.Time_HOUR_get();
00077 }