1 package org.kuali.ole.docstore.validation;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6
7
8
9
10
11
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 }