KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > detach > groupama > IntervenantHelper


1 package org.objectweb.speedo.pobjects.detach.groupama;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.Collection JavaDoc;
5
6 /**
7  * An intervenant has many conventions
8  */

9 public class IntervenantHelper {
10
11     public IntervenantHelper() {
12         this.conventions = new ArrayList JavaDoc();
13     }
14     
15     /**
16      * PrimaryKey
17      */

18     private int nomep;
19     private Collection JavaDoc conventions;
20
21     public Collection JavaDoc getConventions() {
22         return conventions;
23     }
24    
25     public int getNomep() {
26         return nomep;
27     }
28
29     public void setConventions(Collection JavaDoc pConventions) {
30         conventions = pConventions;
31     }
32   
33     public void addConvention(ConventionHelper convention) {
34         if (conventions == null)
35             conventions = new ArrayList JavaDoc();
36         conventions.add(convention);
37     }
38     
39     public void setNomep(int pNomep) {
40         nomep = pNomep;
41     }
42 }
43
Popular Tags