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