View Javadoc
1   /*
2    * Copyright 2010 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
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.ole.integration.cg.dto;
17  
18  import java.io.Serializable;
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  public class BudgetAdjustmentParametersDTO implements Serializable {
23  
24      // goes into document header
25      protected String description;
26      protected String explanation;
27      protected String orgDocNumber;
28      protected String sponsorType;
29  
30      protected String principalId;
31  
32      // inner class implements BA details
33      static public class Details {
34          protected String chart;
35          protected String account;
36          protected String subAccount;
37          protected String objectCode;
38          protected String projectCode;
39          protected String currentAmount;
40  
41           /**
42           * Gets the chart attribute.
43           * 
44           * @return Returns the chart.
45           */
46          public String getChart() {
47              return chart;
48          }
49  
50          /**
51           * Sets the chart attribute value.
52           * 
53           * @param chart The chart to set.
54           */
55          public void setChart(String chrt) {
56              this.chart = chrt;
57          }
58  
59          /**
60           * Gets the account attribute.
61           * 
62           * @return Returns the account.
63           */
64          public String getAccount() {
65              return account;
66          }
67  
68          /**
69           * Sets the account attribute value.
70           * 
71           * @param account The account to set.
72           */
73          public void setAccount(String account) {
74              this.account = account;
75          }
76          
77          public String getSubAccount() {
78              return subAccount;
79          }
80          public void setSubAccount(String subAccount) {
81              this.subAccount = subAccount;
82          }
83  
84          /**
85           * Gets the objectCode attribute.
86           */
87     
88          public String getObjectCode() {
89              return objectCode;
90          }
91  
92          /**
93           * Sets the objectCode attribute value.
94           * 
95           * @param objectCode The objectCode to set.
96           */
97          public void setObjectCode(String objectCode) {
98              this.objectCode = objectCode;
99          }
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 }