View Javadoc
1   package org.kuali.ole.docstore.validation;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   /**
7    * Created with IntelliJ IDEA.
8    * User: jayabharathreddy
9    * Date: 10/15/13
10   * Time: 6:05 PM
11   * To change this template use File | Settings | File Templates.
12   */
13  public class DocStoreValidationError {
14  
15      String errorId;
16      List<String> errorParams;
17  
18      public String getErrorId() {
19          return errorId;
20      }
21  
22      public void setErrorId(String errorId) {
23          this.errorId = errorId;
24      }
25  
26      public List<String> getErrorParams() {
27          return errorParams;
28      }
29  
30      public void setErrorParams(List<String> errorParams) {
31          this.errorParams = errorParams;
32      }
33  
34      public void addParams(String errorParam){
35          if(errorParams!=null){
36              errorParams.add(errorParam);
37          }else{
38              errorParams = new ArrayList<>();
39              errorParams.add(errorParam);
40          }
41  
42      }
43  
44  }