290 <tr> |
290 <tr> |
291 <td><a href="#ClassModel.__init__">ClassModel</a></td> |
291 <td><a href="#ClassModel.__init__">ClassModel</a></td> |
292 <td>Constructor</td> |
292 <td>Constructor</td> |
293 </tr> |
293 </tr> |
294 <tr> |
294 <tr> |
295 <td><a href="#ClassModel.addAttribute">addAttribute</a></td> |
295 <td><a href="#ClassModel.addClassAttribute">addClassAttribute</a></td> |
296 <td>Public method to add an attribute to the class model.</td> |
296 <td>Public method to add a class attribute to the class model.</td> |
|
297 </tr> |
|
298 <tr> |
|
299 <td><a href="#ClassModel.addInstanceAttribute">addInstanceAttribute</a></td> |
|
300 <td>Public method to add an instance attribute to the class model.</td> |
297 </tr> |
301 </tr> |
298 <tr> |
302 <tr> |
299 <td><a href="#ClassModel.addMethod">addMethod</a></td> |
303 <td><a href="#ClassModel.addMethod">addMethod</a></td> |
300 <td>Public method to add a method to the class model.</td> |
304 <td>Public method to add a method to the class model.</td> |
301 </tr> |
305 </tr> |
302 <tr> |
306 <tr> |
303 <td><a href="#ClassModel.getAttributes">getAttributes</a></td> |
307 <td><a href="#ClassModel.getClassAttributes">getClassAttributes</a></td> |
|
308 <td>Public method to retrieve the global attributes of the class.</td> |
|
309 </tr> |
|
310 <tr> |
|
311 <td><a href="#ClassModel.getInstanceAttributes">getInstanceAttributes</a></td> |
304 <td>Public method to retrieve the attributes of the class.</td> |
312 <td>Public method to retrieve the attributes of the class.</td> |
305 </tr> |
313 </tr> |
306 <tr> |
314 <tr> |
307 <td><a href="#ClassModel.getMethods">getMethods</a></td> |
315 <td><a href="#ClassModel.getMethods">getMethods</a></td> |
308 <td>Public method to retrieve the methods of the class.</td> |
316 <td>Public method to retrieve the methods of the class.</td> |
314 <tr><td>None</td></tr> |
322 <tr><td>None</td></tr> |
315 </table> |
323 </table> |
316 |
324 |
317 <a NAME="ClassModel.__init__" ID="ClassModel.__init__"></a> |
325 <a NAME="ClassModel.__init__" ID="ClassModel.__init__"></a> |
318 <h4>ClassModel (Constructor)</h4> |
326 <h4>ClassModel (Constructor)</h4> |
319 <b>ClassModel</b>(<i>name, methods=None, attributes=None</i>) |
327 <b>ClassModel</b>(<i>name, methods=None, instanceAttributes=None, classAttributes=None</i>) |
320 |
328 |
321 <p> |
329 <p> |
322 Constructor |
330 Constructor |
323 </p> |
331 </p> |
324 <dl> |
332 <dl> |
325 |
333 |
326 <dt><i>name</i></dt> |
334 <dt><i>name</i> (str)</dt> |
327 <dd> |
335 <dd> |
328 the class name (string) |
336 the class name |
329 </dd> |
337 </dd> |
330 <dt><i>methods</i></dt> |
338 <dt><i>methods</i> (list of str)</dt> |
331 <dd> |
339 <dd> |
332 list of method names of the class |
340 list of method names of the class |
333 (list of strings) |
341 </dd> |
334 </dd> |
342 <dt><i>instanceAttributes</i> (list of str)</dt> |
335 <dt><i>attributes</i></dt> |
343 <dd> |
336 <dd> |
344 list of instance attribute names of the class |
337 list of attribute names of the class |
345 </dd> |
338 (list of strings) |
346 <dt><i>classAttributes</i> (list of str)</dt> |
339 </dd> |
347 <dd> |
340 </dl> |
348 list of class attribute names of the class |
341 <a NAME="ClassModel.addAttribute" ID="ClassModel.addAttribute"></a> |
349 </dd> |
342 <h4>ClassModel.addAttribute</h4> |
350 </dl> |
343 <b>addAttribute</b>(<i>attribute</i>) |
351 <a NAME="ClassModel.addClassAttribute" ID="ClassModel.addClassAttribute"></a> |
344 |
352 <h4>ClassModel.addClassAttribute</h4> |
345 <p> |
353 <b>addClassAttribute</b>(<i>attribute</i>) |
346 Public method to add an attribute to the class model. |
354 |
347 </p> |
355 <p> |
348 <dl> |
356 Public method to add a class attribute to the class model. |
349 |
357 </p> |
350 <dt><i>attribute</i></dt> |
358 <dl> |
351 <dd> |
359 |
352 attribute name to be added (string) |
360 <dt><i>attribute</i> (str)</dt> |
|
361 <dd> |
|
362 class attribute name to be added |
|
363 </dd> |
|
364 </dl> |
|
365 <a NAME="ClassModel.addInstanceAttribute" ID="ClassModel.addInstanceAttribute"></a> |
|
366 <h4>ClassModel.addInstanceAttribute</h4> |
|
367 <b>addInstanceAttribute</b>(<i>attribute</i>) |
|
368 |
|
369 <p> |
|
370 Public method to add an instance attribute to the class model. |
|
371 </p> |
|
372 <dl> |
|
373 |
|
374 <dt><i>attribute</i> (str)</dt> |
|
375 <dd> |
|
376 instance attribute name to be added |
353 </dd> |
377 </dd> |
354 </dl> |
378 </dl> |
355 <a NAME="ClassModel.addMethod" ID="ClassModel.addMethod"></a> |
379 <a NAME="ClassModel.addMethod" ID="ClassModel.addMethod"></a> |
356 <h4>ClassModel.addMethod</h4> |
380 <h4>ClassModel.addMethod</h4> |
357 <b>addMethod</b>(<i>method</i>) |
381 <b>addMethod</b>(<i>method</i>) |
359 <p> |
383 <p> |
360 Public method to add a method to the class model. |
384 Public method to add a method to the class model. |
361 </p> |
385 </p> |
362 <dl> |
386 <dl> |
363 |
387 |
364 <dt><i>method</i></dt> |
388 <dt><i>method</i> (str)</dt> |
365 <dd> |
389 <dd> |
366 method name to be added (string) |
390 method name to be added |
367 </dd> |
391 </dd> |
368 </dl> |
392 </dl> |
369 <a NAME="ClassModel.getAttributes" ID="ClassModel.getAttributes"></a> |
393 <a NAME="ClassModel.getClassAttributes" ID="ClassModel.getClassAttributes"></a> |
370 <h4>ClassModel.getAttributes</h4> |
394 <h4>ClassModel.getClassAttributes</h4> |
371 <b>getAttributes</b>(<i></i>) |
395 <b>getClassAttributes</b>(<i></i>) |
|
396 |
|
397 <p> |
|
398 Public method to retrieve the global attributes of the class. |
|
399 </p> |
|
400 <dl> |
|
401 <dt>Return:</dt> |
|
402 <dd> |
|
403 list of class attributes |
|
404 </dd> |
|
405 </dl> |
|
406 <dl> |
|
407 <dt>Return Type:</dt> |
|
408 <dd> |
|
409 list of str |
|
410 </dd> |
|
411 </dl> |
|
412 <a NAME="ClassModel.getInstanceAttributes" ID="ClassModel.getInstanceAttributes"></a> |
|
413 <h4>ClassModel.getInstanceAttributes</h4> |
|
414 <b>getInstanceAttributes</b>(<i></i>) |
372 |
415 |
373 <p> |
416 <p> |
374 Public method to retrieve the attributes of the class. |
417 Public method to retrieve the attributes of the class. |
375 </p> |
418 </p> |
376 <dl> |
419 <dl> |
377 <dt>Return:</dt> |
420 <dt>Return:</dt> |
378 <dd> |
421 <dd> |
379 list of class attributes (list of strings) |
422 list of instance attributes |
|
423 </dd> |
|
424 </dl> |
|
425 <dl> |
|
426 <dt>Return Type:</dt> |
|
427 <dd> |
|
428 list of str |
380 </dd> |
429 </dd> |
381 </dl> |
430 </dl> |
382 <a NAME="ClassModel.getMethods" ID="ClassModel.getMethods"></a> |
431 <a NAME="ClassModel.getMethods" ID="ClassModel.getMethods"></a> |
383 <h4>ClassModel.getMethods</h4> |
432 <h4>ClassModel.getMethods</h4> |
384 <b>getMethods</b>(<i></i>) |
433 <b>getMethods</b>(<i></i>) |