summaryrefslogtreecommitdiff
path: root/src/java/ICalPeriodType.java
blob: ffd3cd81f8dab65c8a5cf64e2813826f9f2af27f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*======================================================================
 FILE: ICalPeriodType.java
 CREATOR: structConverter 01/11/02
======================================================================*/

package net.cp.jlibical;

public class ICalPeriodType
{
	public ICalPeriodType(long obj)
	{
		init(obj);
	}

	public ICalPeriodType()
	{
	}

	public ICalPeriodType(long aStart, long aEnd, long aDuration)
	{
		init(aStart, aEnd, aDuration);
	}

	public void setStart(ICalTimeType lcl_arg0)
	{
		start = lcl_arg0;
	}
	public ICalTimeType getStart()
	{
		return start;
	}

	public void setEnd(ICalTimeType lcl_arg0)
	{
		end = lcl_arg0;
	}
	public ICalTimeType getEnd()
	{
		return end;
	}

	public void setDuration(ICalDurationType lcl_arg0)
	{
		duration = lcl_arg0;
	}
	public ICalDurationType getDuration()
	{
		return duration;
	}

	private void init(long aStart, long aEnd, long aDuration)
	{
		start = new ICalTimeType(aStart);
		end = new ICalTimeType(aEnd);
		duration = new ICalDurationType(aDuration);
	}

	private native void init(long obj);

    private native static void initFIDs();

    static {
		System.loadLibrary("ical_jni");
		initFIDs();
    }

	private ICalTimeType		start = new ICalTimeType();
	private ICalTimeType		end = new ICalTimeType();
	private ICalDurationType	duration = new ICalDurationType();
}