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