1 /*======================================================================
2 FILE: ICalTriggerType.java
3 CREATOR: structConverter 01/11/02
4 (C) COPYRIGHT 2002, Critical Path
5 ======================================================================*/
7 package net.cp.jlibical;
9 /** struct icaltriggertype */
10 public class ICalTriggerType
13 * Constructor for pre-existing native icaltriggertype
14 * @param obj c++ pointer
16 ICalTriggerType(long obj)
22 * Constructor for pre-existing native icaltriggertype
23 * @param aTime c++ pointer
24 * @param aDuration c++ pointer
26 ICalTriggerType(long aTime, long aDuration)
28 init(aTime, aDuration);
32 * Constructor for default ICalTriggerType
34 public ICalTriggerType()
38 public void setTime(ICalTimeType lcl_arg0)
42 public ICalTimeType getTime()
47 public void setDuration(ICalDurationType lcl_arg0)
51 public ICalDurationType getDuration()
56 // --------------------------------------------------------
58 // --------------------------------------------------------
61 * init with a native object
63 private void init(long aTime, long aDuration)
65 time = new ICalTimeType(aTime);
66 duration = new ICalDurationType(aDuration);
70 * copy data from an existing struct.
72 private native void init(long obj);
75 * optimization: init field id cache,
77 private native static void initFIDs();
80 * load the jni library for this class
83 System.loadLibrary("ical_jni");
87 // --------------------------------------------------------
89 // --------------------------------------------------------
90 private ICalTimeType time = new ICalTimeType();
91 private ICalDurationType duration = new ICalDurationType();