001package org.kuali.ole.docstore.validation; 002 003import java.util.ArrayList; 004import java.util.List; 005 006/** 007 * Created with IntelliJ IDEA. 008 * User: jayabharathreddy 009 * Date: 10/15/13 010 * Time: 6:05 PM 011 * To change this template use File | Settings | File Templates. 012 */ 013public class DocStoreValidationError { 014 015 String errorId; 016 List<String> errorParams; 017 018 public String getErrorId() { 019 return errorId; 020 } 021 022 public void setErrorId(String errorId) { 023 this.errorId = errorId; 024 } 025 026 public List<String> getErrorParams() { 027 return errorParams; 028 } 029 030 public void setErrorParams(List<String> errorParams) { 031 this.errorParams = errorParams; 032 } 033 034 public void addParams(String errorParam){ 035 if(errorParams!=null){ 036 errorParams.add(errorParam); 037 }else{ 038 errorParams = new ArrayList<>(); 039 errorParams.add(errorParam); 040 } 041 042 } 043 044}