KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > ref > cursor > MesProduits


1 /*
2  * Created on 6 d?c. 2004
3  *
4  * */

5 package org.objectweb.speedo.pobjects.ref.cursor;
6
7 import java.util.Collection JavaDoc;
8 import java.util.Iterator JavaDoc;
9
10 /**
11  * @author yht&&jbu
12  *
13  **/

14 public class MesProduits {
15
16     private long oid;
17     private String JavaDoc catalogue;
18     private Collection JavaDoc ensembleDeDispo;
19    
20     public String JavaDoc toString(){
21         StringBuffer JavaDoc res = new StringBuffer JavaDoc();
22         res.append("[ oid = '" +oid+"'");
23         res.append("- catalogue = '" +catalogue+"'");
24         if (ensembleDeDispo!=null){
25             Iterator JavaDoc it = ensembleDeDispo.iterator();
26             while(it.hasNext()) {
27                 String JavaDoc lineItems = ((MesDispo) it.next()).toString();
28                 res.append("\n[MesDispo : '"+lineItems+"']");
29             }
30         }
31         else {
32             res.append("\n[MesDispo = '"+null+"']");
33         }
34         res.append("]");
35         return res.toString();
36     }
37     /**
38      * @return Returns the catalogue.
39      */

40     public String JavaDoc getCatalogue() {
41         return catalogue;
42     }
43     /**
44      * @param catalogue The catalogue to set.
45      */

46     public void setCatalogue(String JavaDoc catalogue) {
47         this.catalogue = catalogue;
48     }
49     /**
50      * @return Returns the ensembleDeDispo.
51      */

52     public Collection JavaDoc getEnsembleDeDispo() {
53         return ensembleDeDispo;
54     }
55     /**
56      * @param ensembleDeDispo The ensembleDeDispo to set.
57      */

58     public void setEnsembleDeDispo(Collection JavaDoc ensembleDeDispo) {
59         this.ensembleDeDispo = ensembleDeDispo;
60     }
61     /**
62      * @return Returns the oid.
63      */

64     public long getOid() {
65         return oid;
66     }
67     /**
68      * @param oid The oid to set.
69      */

70     public void setOid(long oid) {
71         this.oid = oid;
72     }
73 }
74
Popular Tags