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.abcref;
31  
32  
33  // Insert here additional imports
34  
35  
36  
37  
38  /***
39   * 
40   * @author
41   * @version
42   */
43  
44  
45  public class RootRef
46  {
47  	/*-------------------------------------------------------------------------
48  	 * Attributes declaration
49  	 *-------------------------------------------------------------------------*/
50  
51  
52  	/*-------------------------------------------------------------------------
53  	 * Associations declaration
54  	 *-------------------------------------------------------------------------*/
55  	/***
56  	 * 
57  	 */
58  	private java.util.List aByValue = new java.util.ArrayList() ;
59  	/***
60  	 * 
61  	 */
62  	private java.util.List bByValue = new java.util.ArrayList() ;
63  	/***
64  	 * 
65  	 */
66  	private java.util.List aByRef = new java.util.ArrayList() ;
67  	/***
68  	 * 
69  	 */
70  	private java.util.List cByValue = new java.util.ArrayList() ;
71  
72  
73  	/*-------------------------------------------------------------------------
74  	 * Operations
75  	 *-------------------------------------------------------------------------*/
76  
77  
78  	/*-------------------------------------------------------------------------
79  	 * Attribute accessors
80  	 *-------------------------------------------------------------------------*/
81  
82  
83  	/*-------------------------------------------------------------------------
84  	 * Association accessors
85  	 *-------------------------------------------------------------------------*/
86  	//--------------------------
87  	// Accessors for association aByValue
88  	//--------------------------
89  	/***
90  	 * Returns a target in link aByValue.<br/>
91  	 * 
92  	 * @param index offset in the array
93  	 * @return ARefee
94  	 */
95  	public ARefee getAByValue(int index) {
96  		ARefee vAByValue = (ARefee)aByValue.get(index);
97  		return vAByValue;
98  	}
99  	/***
100 	 * Returns an iterator for targets in links aByValue
101 	 * @return java.util.Iterator
102 	 */
103 	public  java.util.Iterator iteratorAByValue() {
104 		java.util.Iterator vIterator = aByValue.iterator();
105 		return vIterator;
106 	}
107 	/***
108 	 * Returns the size of the collection aByValue
109 	 * @return int
110 	 */
111 	public  int sizeAByValue() {
112 		int vSize = aByValue.size();
113 		return vSize;
114 	}
115 
116 	/***
117 	 * Inserts a target in link aByValue.<br/>
118 	 * 
119 	 * @param index offset in the list
120 	 * @param aARefee The ARefee to insert
121 	 */
122 	public void addAByValue(int index, ARefee aARefee) {
123 		this.aByValue.add(index, aARefee);
124 	}
125 	/***
126 	 * Adds a target at end of link aByValue.<br/>
127 	 * 
128 	 * @param aARefee The ARefee to insert
129 	 */
130 	public void addAByValue(ARefee aARefee) {
131 		this.aByValue.add(this.aByValue.size(), aARefee);
132 	}
133 	
134 	/***
135 	 * Removes a target in link aByValue
136 	 * @param index offset in the list
137 	 */
138 	public void removeAByValue(int index) {
139 		this.aByValue.remove(index);
140 	}
141 	
142 	/***
143 	 * Clears all targets in link aByValue
144 	 */
145 	public void clearAByValue() {
146 		this.aByValue.clear();
147 	}
148 
149 
150 
151 	//--------------------------
152 	// Accessors for association bByValue
153 	//--------------------------
154 	/***
155 	 * Returns a target in link bByValue.<br/>
156 	 * 
157 	 * @param index offset in the array
158 	 * @return BRefee
159 	 */
160 	public BRefee getBByValue(int index) {
161 		BRefee vBByValue = (BRefee)bByValue.get(index);
162 		return vBByValue;
163 	}
164 	/***
165 	 * Returns an iterator for targets in links bByValue
166 	 * @return java.util.Iterator
167 	 */
168 	public  java.util.Iterator iteratorBByValue() {
169 		java.util.Iterator vIterator = bByValue.iterator();
170 		return vIterator;
171 	}
172 	/***
173 	 * Returns the size of the collection bByValue
174 	 * @return int
175 	 */
176 	public  int sizeBByValue() {
177 		int vSize = bByValue.size();
178 		return vSize;
179 	}
180 
181 	/***
182 	 * Inserts a target in link bByValue.<br/>
183 	 * 
184 	 * @param index offset in the list
185 	 * @param aBRefee The BRefee to insert
186 	 */
187 	public void addBByValue(int index, BRefee aBRefee) {
188 		this.bByValue.add(index, aBRefee);
189 	}
190 	/***
191 	 * Adds a target at end of link bByValue.<br/>
192 	 * 
193 	 * @param aBRefee The BRefee to insert
194 	 */
195 	public void addBByValue(BRefee aBRefee) {
196 		this.bByValue.add(this.bByValue.size(), aBRefee);
197 	}
198 	
199 	/***
200 	 * Removes a target in link bByValue
201 	 * @param index offset in the list
202 	 */
203 	public void removeBByValue(int index) {
204 		this.bByValue.remove(index);
205 	}
206 	
207 	/***
208 	 * Clears all targets in link bByValue
209 	 */
210 	public void clearBByValue() {
211 		this.bByValue.clear();
212 	}
213 
214 
215 
216 	//--------------------------
217 	// Accessors for association aByRef
218 	//--------------------------
219 	/***
220 	 * Returns a target in link aByRef.<br/>
221 	 * 
222 	 * @param index offset in the array
223 	 * @return ARefee
224 	 */
225 	public ARefee getAByRef(int index) {
226 		ARefee vAByRef = (ARefee)aByRef.get(index);
227 		return vAByRef;
228 	}
229 	/***
230 	 * Returns an iterator for targets in links aByRef
231 	 * @return java.util.Iterator
232 	 */
233 	public  java.util.Iterator iteratorAByRef() {
234 		java.util.Iterator vIterator = aByRef.iterator();
235 		return vIterator;
236 	}
237 	/***
238 	 * Returns the size of the collection aByRef
239 	 * @return int
240 	 */
241 	public  int sizeAByRef() {
242 		int vSize = aByRef.size();
243 		return vSize;
244 	}
245 
246 	/***
247 	 * Inserts a target in link aByRef.<br/>
248 	 * 
249 	 * @param index offset in the list
250 	 * @param aARefee The ARefee to insert
251 	 */
252 	public void addAByRef(int index, ARefee aARefee) {
253 		this.aByRef.add(index, aARefee);
254 	}
255 	/***
256 	 * Adds a target at end of link aByRef.<br/>
257 	 * 
258 	 * @param aARefee The ARefee to insert
259 	 */
260 	public void addAByRef(ARefee aARefee) {
261 		this.aByRef.add(this.aByRef.size(), aARefee);
262 	}
263 	
264 	/***
265 	 * Removes a target in link aByRef
266 	 * @param index offset in the list
267 	 */
268 	public void removeAByRef(int index) {
269 		this.aByRef.remove(index);
270 	}
271 	
272 	/***
273 	 * Clears all targets in link aByRef
274 	 */
275 	public void clearAByRef() {
276 		this.aByRef.clear();
277 	}
278 
279 
280 
281 	//--------------------------
282 	// Accessors for association cByValue
283 	//--------------------------
284 	/***
285 	 * Returns a target in link cByValue.<br/>
286 	 * 
287 	 * @param index offset in the array
288 	 * @return CRefee
289 	 */
290 	public CRefee getCByValue(int index) {
291 		CRefee vCByValue = (CRefee)cByValue.get(index);
292 		return vCByValue;
293 	}
294 	/***
295 	 * Returns an iterator for targets in links cByValue
296 	 * @return java.util.Iterator
297 	 */
298 	public  java.util.Iterator iteratorCByValue() {
299 		java.util.Iterator vIterator = cByValue.iterator();
300 		return vIterator;
301 	}
302 	/***
303 	 * Returns the size of the collection cByValue
304 	 * @return int
305 	 */
306 	public  int sizeCByValue() {
307 		int vSize = cByValue.size();
308 		return vSize;
309 	}
310 
311 	/***
312 	 * Inserts a target in link cByValue.<br/>
313 	 * 
314 	 * @param index offset in the list
315 	 * @param aCRefee The CRefee to insert
316 	 */
317 	public void addCByValue(int index, CRefee aCRefee) {
318 		this.cByValue.add(index, aCRefee);
319 	}
320 	/***
321 	 * Adds a target at end of link cByValue.<br/>
322 	 * 
323 	 * @param aCRefee The CRefee to insert
324 	 */
325 	public void addCByValue(CRefee aCRefee) {
326 		this.cByValue.add(this.cByValue.size(), aCRefee);
327 	}
328 	
329 	/***
330 	 * Removes a target in link cByValue
331 	 * @param index offset in the list
332 	 */
333 	public void removeCByValue(int index) {
334 		this.cByValue.remove(index);
335 	}
336 	
337 	/***
338 	 * Clears all targets in link cByValue
339 	 */
340 	public void clearCByValue() {
341 		this.cByValue.clear();
342 	}
343 
344 
345 
346 
347 }