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.util.Collections;
20: import java.util.List;
21: import java.util.Map;
22:
23: import edu.iu.uis.eden.lookupable.Row;
24: import edu.iu.uis.eden.plugin.attributes.WorkflowAttribute;
25:
26: /**
27: * Abstract base class for {@link WorkflowAttribute}s.
28: *
29: * @author Aaron Hamid (arh14 at cornell dot edu)
30: */
31: public abstract class AbstractWorkflowAttribute implements
32: WorkflowAttribute {
33: protected boolean required;
34:
35: public List<Row> getRuleRows() {
36: return Collections.EMPTY_LIST;
37: }
38:
39: public List<Row> getRoutingDataRows() {
40: return Collections.EMPTY_LIST;
41: }
42:
43: public String getDocContent() {
44: return "";
45: }
46:
47: public List<RuleExtensionValue> getRuleExtensionValues() {
48: return Collections.EMPTY_LIST;
49: }
50:
51: public List validateRoutingData(Map paramMap) {
52: return Collections.EMPTY_LIST;
53: }
54:
55: public List validateRuleData(Map paramMap) {
56: return Collections.EMPTY_LIST;
57: }
58:
59: public void setRequired(boolean required) {
60: this .required = required;
61: }
62:
63: public boolean isRequired() {
64: return required;
65: }
66:
67: /* TODO: document these two methods ... what are these for? */
68: public String getIdFieldName() {
69: return "";
70: }
71:
72: public String getLockFieldName() {
73: return "";
74: }
75: }
|