Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MatchingParam |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2005-2011 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 | 0 | private Boolean error = Boolean.FALSE; |
29 | private String errorMessage; | |
30 | ||
31 | 0 | public MatchingParam() { |
32 | 0 | } |
33 | ||
34 | 0 | public MatchingParam(String paramName, String paramValue, Boolean error, String errorMessage) { |
35 | 0 | this.paramName = paramName; |
36 | 0 | this.paramValue = paramValue; |
37 | 0 | this.error = error; |
38 | 0 | this.errorMessage = errorMessage; |
39 | 0 | } |
40 | ||
41 | public Boolean getError() { | |
42 | 0 | return error; |
43 | } | |
44 | ||
45 | public void setError(Boolean error) { | |
46 | 0 | this.error = error; |
47 | 0 | } |
48 | ||
49 | public String getErrorMessage() { | |
50 | 0 | return errorMessage; |
51 | } | |
52 | ||
53 | public void setErrorMessage(String errorMessage) { | |
54 | 0 | this.errorMessage = errorMessage; |
55 | 0 | } |
56 | ||
57 | public String getParamName() { | |
58 | 0 | return paramName; |
59 | } | |
60 | ||
61 | public void setParamName(String paramName) { | |
62 | 0 | this.paramName = paramName; |
63 | 0 | } |
64 | ||
65 | public String getParamValue() { | |
66 | 0 | return paramValue; |
67 | } | |
68 | ||
69 | public void setParamValue(String paramValue) { | |
70 | 0 | this.paramValue = paramValue; |
71 | 0 | } |
72 | } |