View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.edl.impl.components;
17  
18  /**
19   * Convenience class for representing a request param with it's value and any associated errors.
20   * 
21   * @author Kuali Rice Team (rice.collab@kuali.org)
22   *
23   */
24  public class MatchingParam {
25  	
26  	private String paramName;
27  	private String paramValue;
28  	private Boolean error = Boolean.FALSE;
29  	private String errorMessage;
30  	
31  	public MatchingParam() {
32  	}
33  	
34  	public MatchingParam(String paramName, String paramValue, Boolean error, String errorMessage) {
35  		this.paramName = paramName;
36  		this.paramValue = paramValue;
37  		this.error = error;
38  		this.errorMessage = errorMessage;
39  	}
40  	
41  	public Boolean getError() {
42  		return error;
43  	}
44  
45  	public void setError(Boolean error) {
46  		this.error = error;
47  	}
48  
49  	public String getErrorMessage() {
50  		return errorMessage;
51  	}
52  
53  	public void setErrorMessage(String errorMessage) {
54  		this.errorMessage = errorMessage;
55  	}
56  
57  	public String getParamName() {
58  		return paramName;
59  	}
60  
61  	public void setParamName(String paramName) {
62  		this.paramName = paramName;
63  	}
64  
65  	public String getParamValue() {
66  		return paramValue;
67  	}
68  
69  	public void setParamValue(String paramValue) {
70  		this.paramValue = paramValue;
71  	}
72  }