bump to 1.0.0 and clean up spec file
[platform/upstream/libical.git] / src / java / ICalTimeType.java
1 /*======================================================================
2  FILE: ICalTimeType.java
3  CREATOR: structConverter 01/11/02
4  (C) COPYRIGHT 2002, Critical Path
5 ======================================================================*/
6
7 package net.cp.jlibical;
8
9 /** struct icaltimetype */
10 public class ICalTimeType
11 {
12         /**
13          * Constructor for pre-existing native icaltimetype
14          * @param obj c++ pointer
15          */
16         ICalTimeType(long obj)
17         {
18                 init(obj);
19         }
20
21         /**
22          * Constructor for default ICalTimeType
23          */
24         public ICalTimeType()
25         {
26         }
27
28     public void setYear(int lcl_arg0)
29     {
30         year = lcl_arg0;
31     }
32     public int getYear()
33     {
34         return year;
35     }
36
37     public void setMonth(int lcl_arg0)
38     {
39         month = lcl_arg0;
40     }
41     public int getMonth()
42     {
43         return month;
44     }
45
46     public void setDay(int lcl_arg0)
47     {
48         day = lcl_arg0;
49     }
50     public int getDay()
51     {
52         return day;
53     }
54
55     public void setHour(int lcl_arg0)
56     {
57         hour = lcl_arg0;
58     }
59     public int getHour()
60     {
61         return hour;
62     }
63
64     public void setMinute(int lcl_arg0)
65     {
66         minute = lcl_arg0;
67     }
68     public int getMinute()
69     {
70         return minute;
71     }
72
73     public void setSecond(int lcl_arg0)
74     {
75         second = lcl_arg0;
76     }
77     public int getSecond()
78     {
79         return second;
80     }
81
82     public void setIs_utc(boolean lcl_arg0)
83     {
84         is_utc = lcl_arg0 ? 1 : 0;
85     }
86     public boolean getIs_utc()
87     {
88         return is_utc == 0 ? false : true;
89     }
90
91     public void setIs_date(boolean lcl_arg0)
92     {
93         is_date = lcl_arg0 ? 1 : 0;
94     }
95     public boolean getIs_date()
96     {
97         return is_date == 0 ? false : true;
98     }
99
100     public void setZone(String lcl_arg0)
101     {
102         zone = lcl_arg0;
103     }
104     public String getZone()
105     {
106         return zone;
107     }
108
109         // --------------------------------------------------------
110         // Initialization
111         // --------------------------------------------------------
112
113         /**
114          * copy data from an existing struct.
115          */
116         private native void init(long obj);
117
118         /**
119          * optimization: init field id cache,
120          */
121     private native static void initFIDs();
122
123         /**
124          * load the jni library for this class
125          */
126         static {
127                 System.loadLibrary("ical_jni");
128                 initFIDs();
129         }
130
131         // --------------------------------------------------------
132         // Fields
133         // --------------------------------------------------------
134
135     private int month;
136     private int day;
137     private int year;
138     private int hour;
139     private int minute;
140     private int second;
141     private int is_utc;
142     private int is_date;
143     private String      zone = new String();    //   Converted from char*
144 }
145