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.routetemplate;
18:
19: import java.io.Serializable;
20: import java.util.Map;
21:
22: import edu.iu.uis.eden.docsearch.SearchableAttribute;
23: import edu.iu.uis.eden.plugin.attributes.WorkflowAttribute;
24: import edu.iu.uis.eden.plugin.attributes.WorkflowAttributeXmlValidator;
25:
26: /**
27: * An error returned from the validation of a {@link WorkflowAttribute}.
28: * Returned by a call to {@link WorkflowAttributeXmlValidator#validateClientRoutingData()}
29: * and {@link SearchableAttribute#validateUserSearchInputs(Map)}
30: *
31: * @author bghutchi
32: */
33: public class WorkflowAttributeValidationError implements Serializable {
34:
35: private static final long serialVersionUID = 6785629049454272657L;
36:
37: private String key;
38: private String message;
39:
40: public WorkflowAttributeValidationError(String key, String message) {
41: this .key = key;
42: this .message = message;
43: }
44:
45: /**
46: * @param key The key to set.
47: */
48: public void setKey(String key) {
49: this .key = key;
50: }
51:
52: /**
53: * @return Returns the key.
54: */
55: public String getKey() {
56: return key;
57: }
58:
59: /**
60: * @param message The message to set.
61: */
62: public void setMessage(String message) {
63: this .message = message;
64: }
65:
66: /**
67: * @return Returns the message.
68: */
69: public String getMessage() {
70: return message;
71: }
72:
73: }
|