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.applicationconstants.web;
18:
19: import java.util.Collection;
20:
21: import org.apache.struts.action.ActionForm;
22:
23: import edu.iu.uis.eden.applicationconstants.ApplicationConstant;
24:
25: /**
26: * Struts form for the {@link ApplicationConstantsAction}
27: *
28: * @author rkirkend
29: * @author ewestfal
30: */
31: public class ApplicationConstantsForm extends ActionForm {
32:
33: private static final long serialVersionUID = -8441254491845120955L;
34:
35: private Collection<ApplicationConstant> applicationConstants;
36: private ApplicationConstant constant = new ApplicationConstant();
37: private String methodToCall = "";
38:
39: public Collection<ApplicationConstant> getApplicationConstants() {
40: return applicationConstants;
41: }
42:
43: public void setApplicationConstants(
44: Collection<ApplicationConstant> applicationConstants) {
45: this .applicationConstants = applicationConstants;
46: }
47:
48: public ApplicationConstant getConstant() {
49: return constant;
50: }
51:
52: public void setConstant(ApplicationConstant constant) {
53: this .constant = constant;
54: }
55:
56: public void setApplicationConstantName(
57: String applicationConstantName) {
58: constant.setApplicationConstantName(applicationConstantName);
59: }
60:
61: public void setApplicationConstantValue(
62: String applicationConstantValue) {
63: constant.setApplicationConstantValue(applicationConstantValue);
64: }
65:
66: public String getMethodToCall() {
67: return methodToCall;
68: }
69:
70: public void setMethodToCall(String methodToCall) {
71: this.methodToCall = methodToCall;
72: }
73:
74: }
|