1 5 package org.objectweb.speedo.pobjects.ref.cursor; 6 7 import java.util.Collection ; 8 import java.util.Iterator ; 9 10 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 } 31 else { 32 res.append("\n[MesDispo = '"+null+"']"); 33 } 34 res.append("]"); 35 return res.toString(); 36 } 37 40 public String getCatalogue() { 41 return catalogue; 42 } 43 46 public void setCatalogue(String catalogue) { 47 this.catalogue = catalogue; 48 } 49 52 public Collection getEnsembleDeDispo() { 53 return ensembleDeDispo; 54 } 55 58 public void setEnsembleDeDispo(Collection ensembleDeDispo) { 59 this.ensembleDeDispo = ensembleDeDispo; 60 } 61 64 public long getOid() { 65 return oid; 66 } 67 70 public void setOid(long oid) { 71 this.oid = oid; 72 } 73 } 74 | Popular Tags |