001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.edl.impl.components;
017
018/**
019 * Convenience class for representing a request param with it's value and any associated errors.
020 * 
021 * @author Kuali Rice Team (rice.collab@kuali.org)
022 *
023 */
024public class MatchingParam {
025        
026        private String paramName;
027        private String paramValue;
028        private Boolean error = Boolean.FALSE;
029        private String errorMessage;
030        
031        public MatchingParam() {
032        }
033        
034        public MatchingParam(String paramName, String paramValue, Boolean error, String errorMessage) {
035                this.paramName = paramName;
036                this.paramValue = paramValue;
037                this.error = error;
038                this.errorMessage = errorMessage;
039        }
040        
041        public Boolean getError() {
042                return error;
043        }
044
045        public void setError(Boolean error) {
046                this.error = error;
047        }
048
049        public String getErrorMessage() {
050                return errorMessage;
051        }
052
053        public void setErrorMessage(String errorMessage) {
054                this.errorMessage = errorMessage;
055        }
056
057        public String getParamName() {
058                return paramName;
059        }
060
061        public void setParamName(String paramName) {
062                this.paramName = paramName;
063        }
064
065        public String getParamValue() {
066                return paramValue;
067        }
068
069        public void setParamValue(String paramValue) {
070                this.paramValue = paramValue;
071        }
072}