View Javadoc

1   /*
2    * sbxb library, part of ULMgen product
3    * Copyright (C) 2003,2005 Thierry Beigbeder
4    *
5    * This program is free software; you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation; either version 2 of the License, or
8    * (at your option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18   */
19  /*
20   * $Header: $
21   * $Revision: $
22   * $Date: $
23   *
24   * History :
25   * Who       yyyy/mm/dd   Action
26   * --------  ----------   ------
27   */
28  
29  
30  package org.otvl.sbxbsamp.simple;
31  
32  
33  // Insert here additional imports
34  
35  /***
36   * 
37   * @author
38   * @version
39   */
40  
41  
42  public class Agenda
43  {
44  	/*-------------------------------------------------------------------------
45  	 * Attributes declaration
46  	 *-------------------------------------------------------------------------*/
47  	/***
48  	 * 
49  	 */
50  	private String id;
51  
52  
53  	/*-------------------------------------------------------------------------
54  	 * Associations declaration
55  	 *-------------------------------------------------------------------------*/
56  	/***
57  	 * 
58  	 */
59  	private java.util.List meeting = new java.util.ArrayList() ;
60  
61  
62  	/*-------------------------------------------------------------------------
63  	 * Operations
64  	 *-------------------------------------------------------------------------*/
65  
66  
67  	/*-------------------------------------------------------------------------
68  	 * Attribute accessors
69  	 *-------------------------------------------------------------------------*/
70  	//------------------------
71  	// Accessors for attribute id
72  	//------------------------
73  	/***
74  	 * Returns the id.<br/>
75  	 * 
76  	 * @return String
77  	 */
78  	public String getId() {
79  		String vId = id;
80  		return vId;
81  	}
82  
83  	/***
84  	 * Sets the id.<br/>
85  	 * 
86  	 * @param id The id to set
87  	 */
88  	public void setId(String id) {
89  		this.id = id;
90  	}
91  
92  
93  
94  	/*-------------------------------------------------------------------------
95  	 * Association accessors
96  	 *-------------------------------------------------------------------------*/
97  	//--------------------------
98  	// Accessors for association meeting
99  	//--------------------------
100 	/***
101 	 * Returns a target in link meeting.<br/>
102 	 * 
103 	 * @param index offset in the array
104 	 * @return Meeting
105 	 */
106 	public Meeting getMeeting(int index) {
107 		Meeting vMeeting = (Meeting)meeting.get(index);
108 		return vMeeting;
109 	}
110 	/***
111 	 * Returns an iterator for targets in links meeting
112 	 * @return java.util.Iterator
113 	 */
114 	public  java.util.Iterator iteratorMeeting() {
115 		java.util.Iterator vIterator = meeting.iterator();
116 		return vIterator;
117 	}
118 	/***
119 	 * Returns the size of the collection meeting
120 	 * @return int
121 	 */
122 	public  int sizeMeeting() {
123 		int vSize = meeting.size();
124 		return vSize;
125 	}
126 
127 	/***
128 	 * Inserts a target in link meeting.<br/>
129 	 * 
130 	 * @param index offset in the list
131 	 * @param aMeeting The Meeting to insert
132 	 */
133 	public void addMeeting(int index, Meeting aMeeting) {
134 		this.meeting.add(index, aMeeting);
135 	}
136 	/***
137 	 * Adds a target at end of link meeting.<br/>
138 	 * 
139 	 * @param aMeeting The Meeting to insert
140 	 */
141 	public void addMeeting(Meeting aMeeting) {
142 		this.meeting.add(this.meeting.size(), aMeeting);
143 	}
144 	
145 	/***
146 	 * Removes a target in link meeting
147 	 * @param index offset in the list
148 	 */
149 	public void removeMeeting(int index) {
150 		this.meeting.remove(index);
151 	}
152 	
153 	/***
154 	 * Clears all targets in link meeting
155 	 */
156 	public void clearMeeting() {
157 		this.meeting.clear();
158 	}
159 
160 
161 
162 
163 }