View Javadoc
1   package org.kuali.ole.pojo.edi;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   /**
7    * Created by IntelliJ IDEA.
8    * User: palanivel
9    * Date: 3/6/12
10   * Time: 4:29 PM
11   * To change this template use File | Settings | File Templates.
12   */
13  public class ProductFunction {
14      private String productId;
15      private List<ProductArticleNumber> productArticleNumber = new ArrayList<ProductArticleNumber>();
16      private List<SupplierArticleNumber> supplierArticleNumber = new ArrayList<>();
17  
18      public void addProductArticleNumber(ProductArticleNumber productArticleNumber) {
19          if (!this.productArticleNumber.contains(productArticleNumber)) {
20              this.productArticleNumber.add(productArticleNumber);
21          }
22      }
23  
24      public void addSupplierArticleNumber(SupplierArticleNumber supplierArticleNumber) {
25          if (!this.supplierArticleNumber.contains(supplierArticleNumber)) {
26              this.supplierArticleNumber.add(supplierArticleNumber);
27          }
28      }
29  
30  
31      public String getProductId() {
32          return productId;
33      }
34  
35      public void setProductId(String productId) {
36          this.productId = productId;
37      }
38  
39      public List<ProductArticleNumber> getProductArticleNumber() {
40          return productArticleNumber;
41      }
42  
43      public void setProductArticleNumber(List<ProductArticleNumber> productArticleNumber) {
44          this.productArticleNumber = productArticleNumber;
45      }
46  
47      public List<SupplierArticleNumber> getSupplierArticleNumber() {
48          return supplierArticleNumber;
49      }
50  
51      public void setSupplierArticleNumber(List<SupplierArticleNumber> supplierArticleNumber) {
52          this.supplierArticleNumber = supplierArticleNumber;
53      }
54  }