001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.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/ecl2.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.kfs.integration.cg.businessobject; 018 019 import java.io.Serializable; 020 import java.util.LinkedHashMap; 021 022 import javax.xml.bind.annotation.XmlAccessType; 023 import javax.xml.bind.annotation.XmlAccessorType; 024 import javax.xml.bind.annotation.XmlType; 025 026 import org.kuali.kfs.integration.cg.ContractsAndGrantsBudgetCategory; 027 import org.kuali.kfs.integration.cg.ContractsAndGrantsUnit; 028 import org.kuali.rice.kns.bo.BusinessObjectBase; 029 030 031 /** 032 * <p>Java class for budgetCategoryDTO complex type. 033 * 034 * <p>The following schema fragment specifies the expected content contained within this class. 035 * 036 * <pre> 037 * <complexType name="budgetCategoryDTO"> 038 * <complexContent> 039 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 040 * <sequence> 041 * <element name="authorPersonName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 042 * <element name="budgetCategoryCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 043 * <element name="budgetCategoryTypeCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 044 * <element name="budgetCategoryTypeDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 045 * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 046 * </sequence> 047 * </restriction> 048 * </complexContent> 049 * </complexType> 050 * </pre> 051 * 052 * 053 */ 054 @XmlAccessorType(XmlAccessType.FIELD) 055 @XmlType(name = "budgetCategoryDTO", propOrder = { 056 "authorPersonName", 057 "budgetCategoryCode", 058 "budgetCategoryTypeCode", 059 "budgetCategoryTypeDescription", 060 "description" 061 }) 062 public class BudgetCategoryDTO extends BusinessObjectBase implements ContractsAndGrantsBudgetCategory, Serializable { 063 064 protected String authorPersonName; 065 protected String budgetCategoryCode; 066 protected String budgetCategoryTypeCode; 067 protected String budgetCategoryTypeDescription; 068 protected String description; 069 070 /** 071 * Gets the value of the authorPersonName property. 072 * 073 * @return 074 * possible object is 075 * {@link String } 076 * 077 */ 078 public String getAuthorPersonName() { 079 return authorPersonName; 080 } 081 082 /** 083 * Sets the value of the authorPersonName property. 084 * 085 * @param value 086 * allowed object is 087 * {@link String } 088 * 089 */ 090 public void setAuthorPersonName(String value) { 091 this.authorPersonName = value; 092 } 093 094 /** 095 * Gets the value of the budgetCategoryCode property. 096 * 097 * @return 098 * possible object is 099 * {@link String } 100 * 101 */ 102 public String getBudgetCategoryCode() { 103 return budgetCategoryCode; 104 } 105 106 /** 107 * Sets the value of the budgetCategoryCode property. 108 * 109 * @param value 110 * allowed object is 111 * {@link String } 112 * 113 */ 114 public void setBudgetCategoryCode(String value) { 115 this.budgetCategoryCode = value; 116 } 117 118 /** 119 * Gets the value of the budgetCategoryTypeCode property. 120 * 121 * @return 122 * possible object is 123 * {@link String } 124 * 125 */ 126 public String getBudgetCategoryTypeCode() { 127 return budgetCategoryTypeCode; 128 } 129 130 /** 131 * Sets the value of the budgetCategoryTypeCode property. 132 * 133 * @param value 134 * allowed object is 135 * {@link String } 136 * 137 */ 138 public void setBudgetCategoryTypeCode(String value) { 139 this.budgetCategoryTypeCode = value; 140 } 141 142 /** 143 * Gets the value of the budgetCategoryTypeDescription property. 144 * 145 * @return 146 * possible object is 147 * {@link String } 148 * 149 */ 150 public String getBudgetCategoryTypeDescription() { 151 return budgetCategoryTypeDescription; 152 } 153 154 /** 155 * Sets the value of the budgetCategoryTypeDescription property. 156 * 157 * @param value 158 * allowed object is 159 * {@link String } 160 * 161 */ 162 public void setBudgetCategoryTypeDescription(String value) { 163 this.budgetCategoryTypeDescription = value; 164 } 165 166 /** 167 * Gets the value of the description property. 168 * 169 * @return 170 * possible object is 171 * {@link String } 172 * 173 */ 174 public String getDescription() { 175 return description; 176 } 177 178 /** 179 * Sets the value of the description property. 180 * 181 * @param value 182 * allowed object is 183 * {@link String } 184 * 185 */ 186 public void setDescription(String value) { 187 this.description = value; 188 } 189 190 public void prepareForWorkflow() {} 191 public void refresh() {} 192 193 @SuppressWarnings("rawtypes") 194 @Override 195 protected LinkedHashMap toStringMapper() { 196 LinkedHashMap<String,String> m = new LinkedHashMap<String,String>(); 197 m.put("BudgetCategoryDTO", this.budgetCategoryCode); 198 return m; 199 } 200 201 }