01: /*
02: * Copyright 2006 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.core.datadictionary.control;
17:
18: import org.apache.commons.lang.StringUtils;
19: import org.kuali.core.lookup.keyvalues.ApcValuesFinder;
20:
21: public class ApcSelectControlDefinition extends SelectControlDefinition {
22:
23: private String parameterNamespace;
24: private String parameterDetailType;
25: private String parameterName;
26:
27: public ApcSelectControlDefinition() {
28: super ();
29: setValuesFinderClass(ApcValuesFinder.class);
30: }
31:
32: public String getParameterNamespace() {
33: return parameterNamespace;
34: }
35:
36: public void setParameterNamespace(String parameterNamespace) {
37: if (StringUtils.isBlank(parameterNamespace)) {
38: throw new IllegalArgumentException(
39: "invalid (blank) parameterNamespace in <apcSelect>");
40: }
41: this .parameterNamespace = parameterNamespace;
42: }
43:
44: public String getParameterName() {
45: return parameterName;
46: }
47:
48: public void setParameterName(String parameterName) {
49: if (StringUtils.isBlank(parameterName)) {
50: throw new IllegalArgumentException(
51: "invalid (blank) parameterName in <apcSelect>");
52: }
53: this .parameterName = parameterName;
54: }
55:
56: public boolean isApcSelect() {
57: return true;
58: }
59:
60: public String getParameterDetailType() {
61: return this .parameterDetailType;
62: }
63:
64: public void setParameterDetailType(String parameterDetailType) {
65: if (StringUtils.isBlank(parameterDetailType)) {
66: throw new IllegalArgumentException(
67: "invalid (blank) parameterDetailType in <apcSelect>");
68: }
69: this.parameterDetailType = parameterDetailType;
70: }
71:
72: }
|