1 /*======================================================================
2 FILE: ICalTimeType.java
3 CREATOR: structConverter 01/11/02
4 (C) COPYRIGHT 2002, Critical Path
5 ======================================================================*/
7 package net.cp.jlibical;
9 /** struct icaltimetype */
10 public class ICalTimeType
13 * Constructor for pre-existing native icaltimetype
14 * @param obj c++ pointer
16 ICalTimeType(long obj)
22 * Constructor for default ICalTimeType
28 public void setYear(int lcl_arg0)
37 public void setMonth(int lcl_arg0)
46 public void setDay(int lcl_arg0)
55 public void setHour(int lcl_arg0)
64 public void setMinute(int lcl_arg0)
68 public int getMinute()
73 public void setSecond(int lcl_arg0)
77 public int getSecond()
82 public void setIs_utc(boolean lcl_arg0)
84 is_utc = lcl_arg0 ? 1 : 0;
86 public boolean getIs_utc()
88 return is_utc == 0 ? false : true;
91 public void setIs_date(boolean lcl_arg0)
93 is_date = lcl_arg0 ? 1 : 0;
95 public boolean getIs_date()
97 return is_date == 0 ? false : true;
100 public void setZone(String lcl_arg0)
104 public String getZone()
109 // --------------------------------------------------------
111 // --------------------------------------------------------
114 * copy data from an existing struct.
116 private native void init(long obj);
119 * optimization: init field id cache,
121 private native static void initFIDs();
124 * load the jni library for this class
127 System.loadLibrary("ical_jni");
131 // --------------------------------------------------------
133 // --------------------------------------------------------
143 private String zone = new String(); // Converted from char*