Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MatchingParam |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2005-2008 The Kuali Foundation | |
3 | * | |
4 | * | |
5 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
6 | * you may not use this file except in compliance with the License. | |
7 | * You may obtain a copy of the License at | |
8 | * | |
9 | * http://www.opensource.org/licenses/ecl2.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 org.kuali.rice.edl.impl.components; | |
18 | ||
19 | /** | |
20 | * Convenience class for representing a request param with it's value and any associated errors. | |
21 | * | |
22 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
23 | * | |
24 | */ | |
25 | public class MatchingParam { | |
26 | ||
27 | private String paramName; | |
28 | private String paramValue; | |
29 | 0 | private Boolean error = Boolean.FALSE; |
30 | private String errorMessage; | |
31 | ||
32 | 0 | public MatchingParam() { |
33 | 0 | } |
34 | ||
35 | 0 | public MatchingParam(String paramName, String paramValue, Boolean error, String errorMessage) { |
36 | 0 | this.paramName = paramName; |
37 | 0 | this.paramValue = paramValue; |
38 | 0 | this.error = error; |
39 | 0 | this.errorMessage = errorMessage; |
40 | 0 | } |
41 | ||
42 | public Boolean getError() { | |
43 | 0 | return error; |
44 | } | |
45 | ||
46 | public void setError(Boolean error) { | |
47 | 0 | this.error = error; |
48 | 0 | } |
49 | ||
50 | public String getErrorMessage() { | |
51 | 0 | return errorMessage; |
52 | } | |
53 | ||
54 | public void setErrorMessage(String errorMessage) { | |
55 | 0 | this.errorMessage = errorMessage; |
56 | 0 | } |
57 | ||
58 | public String getParamName() { | |
59 | 0 | return paramName; |
60 | } | |
61 | ||
62 | public void setParamName(String paramName) { | |
63 | 0 | this.paramName = paramName; |
64 | 0 | } |
65 | ||
66 | public String getParamValue() { | |
67 | 0 | return paramValue; |
68 | } | |
69 | ||
70 | public void setParamValue(String paramValue) { | |
71 | 0 | this.paramValue = paramValue; |
72 | 0 | } |
73 | } |