1 package net.sf.invicta.project; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 import java.util.StringTokenizer ; 6 7 import net.sf.invicta.api.DependItem; 8 9 13 public class DependItemImpl implements DependItem { 14 15 protected String name; 17 protected boolean export; 18 protected List productNames = new ArrayList (); 20 23 public DependItemImpl() { 24 super(); 25 } 26 27 31 public DependItemImpl(String name, boolean export) { 32 super(); 33 this.name = name; 34 this.export = export; 35 } 36 37 42 public boolean getExport() { 43 return export; 44 } 45 46 51 public String getName() { 52 return name; 53 } 54 55 59 public void setExport(boolean export) { 60 this.export = export; 61 } 62 63 67 public void setProducts(String productsStr) { 68 StringTokenizer st = new StringTokenizer (productsStr, ","); 69 while (st.hasMoreTokens()) 70 this.productNames.add(st.nextToken().trim()); 71 } 72 73 77 public String getProducts() { 78 return null; 79 } 80 81 85 public void setName(String name) { 86 this.name = name; 87 } 88 89 90 91 97 public List getProductsList() { 98 return productNames; 99 } 100 101 } 102 | Popular Tags |