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.complex;
31  
32  
33  // Insert here additional imports
34  
35  /***
36   * Sample class C
37   * @author
38   * @version
39   */
40  
41  
42  public class ClsC
43  {
44  	/*-------------------------------------------------------------------------
45  	 * Attributes declaration
46  	 *-------------------------------------------------------------------------*/
47  	/***
48  	 * 
49  	 */
50  	private String attC1;
51  	/***
52  	 * 
53  	 */
54  	private String attC2;
55  	/***
56  	 * 
57  	 */
58  	private String attC3;
59  	/***
60  	 * 
61  	 */
62  	private String attC4;
63  	/***
64  	 * 
65  	 */
66  	private String attC5;
67  
68  
69  	/*-------------------------------------------------------------------------
70  	 * Associations declaration
71  	 *-------------------------------------------------------------------------*/
72  	/***
73  	 * 
74  	 */
75  	private java.util.List roleYB = new java.util.ArrayList() ;
76  
77  
78  	/*-------------------------------------------------------------------------
79  	 * Operations
80  	 *-------------------------------------------------------------------------*/
81  
82  
83  	/*-------------------------------------------------------------------------
84  	 * Attribute accessors
85  	 *-------------------------------------------------------------------------*/
86  	//------------------------
87  	// Accessors for attribute attC1
88  	//------------------------
89  	/***
90  	 * Returns the attC1.<br/>
91  	 * 
92  	 * @return String
93  	 */
94  	public String getAttC1() {
95  		String vAttC1 = attC1;
96  		return vAttC1;
97  	}
98  
99  	/***
100 	 * Sets the attC1.<br/>
101 	 * 
102 	 * @param attC1 The attC1 to set
103 	 */
104 	public void setAttC1(String attC1) {
105 		this.attC1 = attC1;
106 	}
107 
108 	//------------------------
109 	// Accessors for attribute attC2
110 	//------------------------
111 	/***
112 	 * Returns the attC2.<br/>
113 	 * 
114 	 * @return String
115 	 */
116 	public String getAttC2() {
117 		String vAttC2 = attC2;
118 		return vAttC2;
119 	}
120 
121 	/***
122 	 * Sets the attC2.<br/>
123 	 * 
124 	 * @param attC2 The attC2 to set
125 	 */
126 	public void setAttC2(String attC2) {
127 		this.attC2 = attC2;
128 	}
129 
130 	//------------------------
131 	// Accessors for attribute attC3
132 	//------------------------
133 	/***
134 	 * Returns the attC3.<br/>
135 	 * 
136 	 * @return String
137 	 */
138 	public String getAttC3() {
139 		String vAttC3 = attC3;
140 		return vAttC3;
141 	}
142 
143 	/***
144 	 * Sets the attC3.<br/>
145 	 * 
146 	 * @param attC3 The attC3 to set
147 	 */
148 	public void setAttC3(String attC3) {
149 		this.attC3 = attC3;
150 	}
151 
152 	//------------------------
153 	// Accessors for attribute attC4
154 	//------------------------
155 	/***
156 	 * Returns the attC4.<br/>
157 	 * 
158 	 * @return String
159 	 */
160 	public String getAttC4() {
161 		String vAttC4 = attC4;
162 		return vAttC4;
163 	}
164 
165 	/***
166 	 * Sets the attC4.<br/>
167 	 * 
168 	 * @param attC4 The attC4 to set
169 	 */
170 	public void setAttC4(String attC4) {
171 		this.attC4 = attC4;
172 	}
173 
174 	//------------------------
175 	// Accessors for attribute attC5
176 	//------------------------
177 	/***
178 	 * Returns the attC5.<br/>
179 	 * 
180 	 * @return String
181 	 */
182 	public String getAttC5() {
183 		String vAttC5 = attC5;
184 		return vAttC5;
185 	}
186 
187 	/***
188 	 * Sets the attC5.<br/>
189 	 * 
190 	 * @param attC5 The attC5 to set
191 	 */
192 	public void setAttC5(String attC5) {
193 		this.attC5 = attC5;
194 	}
195 
196 
197 
198 	/*-------------------------------------------------------------------------
199 	 * Association accessors
200 	 *-------------------------------------------------------------------------*/
201 	//--------------------------
202 	// Accessors for association roleYB
203 	//--------------------------
204 	/***
205 	 * Returns a target in link roleYB.<br/>
206 	 * 
207 	 * @param index offset in the array
208 	 * @return ClsB
209 	 */
210 	public ClsB getRoleYB(int index) {
211 		ClsB vRoleYB = (ClsB)roleYB.get(index);
212 		return vRoleYB;
213 	}
214 	/***
215 	 * Returns an iterator for targets in links roleYB
216 	 * @return java.util.Iterator
217 	 */
218 	public  java.util.Iterator iteratorRoleYB() {
219 		java.util.Iterator vIterator = roleYB.iterator();
220 		return vIterator;
221 	}
222 	/***
223 	 * Returns the size of the collection roleYB
224 	 * @return int
225 	 */
226 	public  int sizeRoleYB() {
227 		int vSize = roleYB.size();
228 		return vSize;
229 	}
230 
231 	/***
232 	 * Inserts a target in link roleYB.<br/>
233 	 * 
234 	 * @param index offset in the list
235 	 * @param aClsB The ClsB to insert
236 	 */
237 	public void addRoleYB(int index, ClsB aClsB) {
238 		this.roleYB.add(index, aClsB);
239 	}
240 	/***
241 	 * Adds a target at end of link roleYB.<br/>
242 	 * 
243 	 * @param aClsB The ClsB to insert
244 	 */
245 	public void addRoleYB(ClsB aClsB) {
246 		this.roleYB.add(this.roleYB.size(), aClsB);
247 	}
248 	
249 	/***
250 	 * Removes a target in link roleYB
251 	 * @param index offset in the list
252 	 */
253 	public void removeRoleYB(int index) {
254 		this.roleYB.remove(index);
255 	}
256 	
257 	/***
258 	 * Clears all targets in link roleYB
259 	 */
260 	public void clearRoleYB() {
261 		this.roleYB.clear();
262 	}
263 
264 
265 
266 
267 }