01: /*
02: * Created on 6 d?c. 2004
03: *
04: * */
05: package org.objectweb.speedo.pobjects.ref.cursor;
06:
07: import java.util.Collection;
08: import java.util.Iterator;
09:
10: /**
11: * @author yht&&jbu
12: *
13: **/
14: public class MesProduits {
15:
16: private long oid;
17: private String catalogue;
18: private Collection ensembleDeDispo;
19:
20: public String toString() {
21: StringBuffer res = new StringBuffer();
22: res.append("[ oid = '" + oid + "'");
23: res.append("- catalogue = '" + catalogue + "'");
24: if (ensembleDeDispo != null) {
25: Iterator it = ensembleDeDispo.iterator();
26: while (it.hasNext()) {
27: String lineItems = ((MesDispo) it.next()).toString();
28: res.append("\n[MesDispo : '" + lineItems + "']");
29: }
30: } else {
31: res.append("\n[MesDispo = '" + null + "']");
32: }
33: res.append("]");
34: return res.toString();
35: }
36:
37: /**
38: * @return Returns the catalogue.
39: */
40: public String getCatalogue() {
41: return catalogue;
42: }
43:
44: /**
45: * @param catalogue The catalogue to set.
46: */
47: public void setCatalogue(String catalogue) {
48: this .catalogue = catalogue;
49: }
50:
51: /**
52: * @return Returns the ensembleDeDispo.
53: */
54: public Collection getEnsembleDeDispo() {
55: return ensembleDeDispo;
56: }
57:
58: /**
59: * @param ensembleDeDispo The ensembleDeDispo to set.
60: */
61: public void setEnsembleDeDispo(Collection ensembleDeDispo) {
62: this .ensembleDeDispo = ensembleDeDispo;
63: }
64:
65: /**
66: * @return Returns the oid.
67: */
68: public long getOid() {
69: return oid;
70: }
71:
72: /**
73: * @param oid The oid to set.
74: */
75: public void setOid(long oid) {
76: this.oid = oid;
77: }
78: }
|