001: /*
002: * Copyright 2006 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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: */
016: package org.kuali.core.datadictionary;
017:
018: import org.apache.commons.lang.StringUtils;
019: import org.apache.commons.logging.Log;
020: import org.apache.commons.logging.LogFactory;
021:
022: /**
023: */
024: public class HelpDefinition extends DataDictionaryDefinitionBase {
025:
026: private String parameterNamespace;
027: private String parameterDetailType;
028: private String parameterName;
029:
030: private static Log LOG = LogFactory.getLog(HelpDefinition.class);
031:
032: /**
033: * Constructs a HelpDefinition.
034: */
035: public HelpDefinition() {
036: super ();
037: LOG.debug("creating new HelpDefinition");
038: }
039:
040: /**
041: * @see org.kuali.core.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Class)
042: */
043: public void completeValidation(Class rootBusinessObjectClass,
044: Class otherBusinessObjectClass,
045: ValidationCompletionUtils validationCompletionUtils) {
046: // No real validation to be done here other than perhaps checking to be
047: // sure that the security workgroup is a valid workgroup.
048: }
049:
050: /**
051: * @return
052: */
053: public String getParameterName() {
054: return parameterName;
055: }
056:
057: /**
058: * @param parameterName
059: */
060: public void setParameterName(String parameterName) {
061: if (StringUtils.isBlank(parameterName)) {
062: throw new IllegalArgumentException(
063: "invalid (blank) parameterName");
064: }
065: if (LOG.isDebugEnabled()) {
066: LOG.debug("calling setParameterName '" + parameterName
067: + "'");
068: }
069: this .parameterName = parameterName;
070: }
071:
072: /**
073: * @return
074: */
075: public String getParameterNamespace() {
076: return parameterNamespace;
077: }
078:
079: /**
080: * @param parameterNamespace
081: */
082: public void setParameterNamespace(String parameterNamespace) {
083: if (StringUtils.isBlank(parameterNamespace)) {
084: throw new IllegalArgumentException(
085: "invalid (blank) parameterNamespace");
086: }
087: if (LOG.isDebugEnabled()) {
088: LOG.debug("calling setParameterNamespace '"
089: + parameterNamespace + "'");
090: }
091: this .parameterNamespace = parameterNamespace;
092: }
093:
094: public String getParameterDetailType() {
095: return this .parameterDetailType;
096: }
097:
098: public void setParameterDetailType(String parameterDetailType) {
099: if (StringUtils.isBlank(parameterDetailType)) {
100: throw new IllegalArgumentException(
101: "invalid (blank) parameterDetailType");
102: }
103: if (LOG.isDebugEnabled()) {
104: LOG.debug("calling setParameterDetailType '"
105: + parameterDetailType + "'");
106: }
107: this.parameterDetailType = parameterDetailType;
108: }
109:
110: }
|