001/* 002 * Copyright 2010 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 */ 016package org.kuali.ole.integration.cg.dto; 017 018import java.io.Serializable; 019import java.util.ArrayList; 020import java.util.List; 021 022public class BudgetAdjustmentParametersDTO implements Serializable { 023 024 // goes into document header 025 protected String description; 026 protected String explanation; 027 protected String orgDocNumber; 028 protected String sponsorType; 029 030 protected String principalId; 031 032 // inner class implements BA details 033 static public class Details { 034 protected String chart; 035 protected String account; 036 protected String subAccount; 037 protected String objectCode; 038 protected String projectCode; 039 protected String currentAmount; 040 041 /** 042 * Gets the chart attribute. 043 * 044 * @return Returns the chart. 045 */ 046 public String getChart() { 047 return chart; 048 } 049 050 /** 051 * Sets the chart attribute value. 052 * 053 * @param chart The chart to set. 054 */ 055 public void setChart(String chrt) { 056 this.chart = chrt; 057 } 058 059 /** 060 * Gets the account attribute. 061 * 062 * @return Returns the account. 063 */ 064 public String getAccount() { 065 return account; 066 } 067 068 /** 069 * Sets the account attribute value. 070 * 071 * @param account The account to set. 072 */ 073 public void setAccount(String account) { 074 this.account = account; 075 } 076 077 public String getSubAccount() { 078 return subAccount; 079 } 080 public void setSubAccount(String subAccount) { 081 this.subAccount = subAccount; 082 } 083 084 /** 085 * Gets the objectCode attribute. 086 */ 087 088 public String getObjectCode() { 089 return objectCode; 090 } 091 092 /** 093 * Sets the objectCode attribute value. 094 * 095 * @param objectCode The objectCode to set. 096 */ 097 public void setObjectCode(String objectCode) { 098 this.objectCode = objectCode; 099 } 100 101 /** 102 * Gets the projectCode attribute. 103 * 104 * @return Returns the projectCode. 105 */ 106 public String getProjectCode() { 107 return projectCode; 108 } 109 110 /** 111 * Sets the projectCode attribute value. 112 * 113 * @param projectCode The projectCode to set. 114 */ 115 public void setProjectCode(String projectCode) { 116 this.projectCode = projectCode; 117 } 118 119 /** 120 * Gets the amount attribute. 121 * 122 * @return Returns the amount. 123 */ 124 public String getCurrentAmount() { 125 return currentAmount; 126 } 127 128 /** 129 * Sets the amount attribute value. 130 * 131 * @param amount The amount to set. 132 */ 133 public void setCurrentAmount(String amount) { 134 this.currentAmount = amount; 135 } 136 } 137 138 protected List<Details> details; 139 140 public BudgetAdjustmentParametersDTO() { 141 } 142 143 144 public String getDescription() { 145 return description; 146 } 147 148 149 public void setDescription(String description) { 150 this.description = description; 151 } 152 153 154 public String getExplanation() { 155 return explanation; 156 } 157 158 159 public void setExplanation(String explanation) { 160 this.explanation = explanation; 161 } 162 163 164 /** 165 * Gets the principalId attribute. 166 * 167 * @return Returns the principalId. 168 */ 169 public String getPrincipalId() { 170 return principalId; 171 } 172 173 174 /** 175 * Sets the principalId attribute value. 176 * 177 * @param principalId The principalId to set. 178 */ 179 public void setPrincipalId(String principalId) { 180 this.principalId = principalId; 181 } 182 183 184 public List<Details> getDetails() { 185 if (details == null) details = new ArrayList<Details>(); 186 return details; 187 } 188 189 190 public void setDetails(List<Details> details) { 191 this.details = details; 192 } 193 194 195 /** 196 * 197 */ 198 public String getOrgDocNumber() { 199 return orgDocNumber; 200 } 201 202 203 /** 204 * 205 */ 206 public void setOrgDocNumber(String orgDocNumber) { 207 this.orgDocNumber = orgDocNumber; 208 } 209 210 211 /** 212 * 213 */ 214 public String getSponsorType() { 215 return sponsorType; 216 } 217 218 219 /** 220 * 221 */ 222 public void setSponsorType(String sponsorType) { 223 this.sponsorType = sponsorType; 224 } 225}