001: /*
002: * Copyright 2006-2007 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:
017: package org.kuali.module.kra.routingform.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: *
025: */
026: public class ControlAttributeType extends PersistableBusinessObjectBase {
027:
028: /**
029: * Constants defining possible type codes and their associated descriptions
030: */
031: public static final String TYPE_CODE_A = "A";
032: public static final String TYPE_CODE_S = "S";
033: public static final String TYPE_CODE_D = "D";
034: public static final String TYPE_CODE_A_DESC = "All Columns";
035: public static final String TYPE_CODE_S_DESC = "Some Columns";
036: public static final String TYPE_CODE_D_DESC = "Description Textarea";
037:
038: private String controlAttributeTypeCode;
039: private String controlAttributeTypeDescription;
040: private boolean dataObjectMaintenanceCodeActiveIndicator;
041: private boolean requiredIndicator;
042:
043: /**
044: * Default constructor.
045: */
046: public ControlAttributeType() {
047:
048: }
049:
050: /**
051: * Gets the controlAttributeTypeCode attribute.
052: *
053: * @return Returns the controlAttributeTypeCode
054: */
055: public String getControlAttributeTypeCode() {
056: return controlAttributeTypeCode;
057: }
058:
059: /**
060: * Sets the controlAttributeTypeCode attribute.
061: *
062: * @param controlAttributeTypeCode The controlAttributeTypeCode to set.
063: */
064: public void setControlAttributeTypeCode(
065: String controlAttributeTypeCode) {
066: this .controlAttributeTypeCode = controlAttributeTypeCode;
067: }
068:
069: /**
070: * Gets the controlAttributeTypeDescription attribute.
071: *
072: * @return Returns the controlAttributeTypeDescription.
073: */
074: public String getControlAttributeTypeDescription() {
075: return controlAttributeTypeDescription;
076: }
077:
078: /**
079: * Sets the controlAttributeTypeDescription attribute value.
080: *
081: * @param controlAttributeTypeDescription The controlAttributeTypeDescription to set.
082: */
083: public void setControlAttributeTypeDescription(
084: String controlAttributeTypeDescription) {
085: this .controlAttributeTypeDescription = controlAttributeTypeDescription;
086: }
087:
088: /**
089: * Gets the dataObjectMaintenanceCodeActiveIndicator attribute.
090: *
091: * @return Returns the dataObjectMaintenanceCodeActiveIndicator
092: */
093: public boolean isDataObjectMaintenanceCodeActiveIndicator() {
094: return dataObjectMaintenanceCodeActiveIndicator;
095: }
096:
097: /**
098: * Sets the dataObjectMaintenanceCodeActiveIndicator attribute.
099: *
100: * @param dataObjectMaintenanceCodeActiveIndicator The dataObjectMaintenanceCodeActiveIndicator to set.
101: */
102: public void setDataObjectMaintenanceCodeActiveIndicator(
103: boolean dataObjectMaintenanceCodeActiveIndicator) {
104: this .dataObjectMaintenanceCodeActiveIndicator = dataObjectMaintenanceCodeActiveIndicator;
105: }
106:
107: /**
108: * Gets the requiredIndicator attribute.
109: *
110: * @return Returns the requiredIndicator
111: */
112: public boolean isRequiredIndicator() {
113: return requiredIndicator;
114: }
115:
116: /**
117: * Sets the requiredIndicator attribute.
118: *
119: * @param requiredIndicator The requiredIndicator to set.
120: */
121: public void setRequiredIndicator(boolean requiredIndicator) {
122: this .requiredIndicator = requiredIndicator;
123: }
124:
125: /**
126: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
127: */
128: protected LinkedHashMap toStringMapper() {
129: LinkedHashMap m = new LinkedHashMap();
130: m
131: .put("controlAttributeTypeCode",
132: this.controlAttributeTypeCode);
133: return m;
134: }
135: }
|