01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/calendar/tags/sakai_2-4-1/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/RecurrenceInstance.java $
03: * $Id: RecurrenceInstance.java 8050 2006-04-20 17:39:55Z ggolden@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.calendar.impl;
21:
22: import org.sakaiproject.time.api.TimeRange;
23:
24: /**
25: * <p>RecurrenceInstance is one instance of a recurrence sequence, with the time range and sequence # of the instance.</p>
26: */
27: public class RecurrenceInstance {
28: /** The time range of the instance. */
29: protected TimeRange m_range = null;
30:
31: /** The sequence number (1 based) of the instance. */
32: protected Integer m_sequence = null;
33:
34: /**
35: * Construct.
36: */
37: public RecurrenceInstance(TimeRange range, int sequence) {
38: m_range = range;
39: m_sequence = new Integer(sequence);
40:
41: } // RecurrenceInstance
42:
43: /**
44: * Access the time range.
45: * @return the TimeRange.
46: */
47: public TimeRange getRange() {
48: return m_range;
49:
50: } // getRange
51:
52: /**
53: * Access the sequence number.
54: * @return the sequence number.
55: */
56: public Integer getSequence() {
57: return m_sequence;
58:
59: } // getSequence
60:
61: } // RecurrenceInstance
|