View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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  
17  package org.kuali.ole.coa.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.ole.sys.OLEPropertyConstants;
22  import org.kuali.ole.sys.businessobject.SystemOptions;
23  import org.kuali.rice.krad.bo.GlobalBusinessObjectDetailBase;
24  
25  /**
26   * 
27   */
28  public class SubObjectCodeGlobalDetail extends GlobalBusinessObjectDetailBase {
29  
30      private String documentNumber;
31      private Integer universityFiscalYear;
32      private String chartOfAccountsCode;
33      private String financialObjectCode;
34  
35      private ObjectCode financialObject;
36      private SystemOptions universityFiscal;
37      private Chart chartOfAccounts;
38  
39      /**
40       * Default constructor.
41       */
42      public SubObjectCodeGlobalDetail() {
43  
44      }
45  
46      /**
47       * Gets the documentNumber attribute.
48       * 
49       * @return Returns the documentNumber
50       */
51      public String getDocumentNumber() {
52          return documentNumber;
53      }
54  
55      /**
56       * Sets the documentNumber attribute.
57       * 
58       * @param documentNumber The documentNumber to set.
59       */
60      public void setDocumentNumber(String documentNumber) {
61          this.documentNumber = documentNumber;
62      }
63  
64  
65      /**
66       * Gets the universityFiscalYear attribute.
67       * 
68       * @return Returns the universityFiscalYear
69       */
70      public Integer getUniversityFiscalYear() {
71          return universityFiscalYear;
72      }
73  
74      /**
75       * Sets the universityFiscalYear attribute.
76       * 
77       * @param universityFiscalYear The universityFiscalYear to set.
78       */
79      public void setUniversityFiscalYear(Integer universityFiscalYear) {
80          this.universityFiscalYear = universityFiscalYear;
81      }
82  
83  
84      /**
85       * Gets the chartOfAccountsCode attribute.
86       * 
87       * @return Returns the chartOfAccountsCode
88       */
89      public String getChartOfAccountsCode() {
90          return chartOfAccountsCode;
91      }
92  
93      /**
94       * Sets the chartOfAccountsCode attribute.
95       * 
96       * @param chartOfAccountsCode The chartOfAccountsCode to set.
97       */
98      public void setChartOfAccountsCode(String chartOfAccountsCode) {
99          this.chartOfAccountsCode = chartOfAccountsCode;
100     }
101 
102 
103     /**
104      * Gets the financialObjectCode attribute.
105      * 
106      * @return Returns the financialObjectCode
107      */
108     public String getFinancialObjectCode() {
109         return financialObjectCode;
110     }
111 
112     /**
113      * Sets the financialObjectCode attribute.
114      * 
115      * @param financialObjectCode The financialObjectCode to set.
116      */
117     public void setFinancialObjectCode(String financialObjectCode) {
118         this.financialObjectCode = financialObjectCode;
119     }
120 
121 
122     /**
123      * Gets the financialObject attribute.
124      * 
125      * @return Returns the financialObject
126      */
127     public ObjectCode getFinancialObject() {
128         return financialObject;
129     }
130 
131     /**
132      * Sets the financialObject attribute.
133      * 
134      * @param financialObject The financialObject to set.
135      * @deprecated
136      */
137     public void setFinancialObject(ObjectCode financialObject) {
138         this.financialObject = financialObject;
139     }
140 
141     public Chart getChartOfAccounts() {
142         return chartOfAccounts;
143     }
144 
145     public void setChartOfAccounts(Chart chartOfAccounts) {
146         this.chartOfAccounts = chartOfAccounts;
147     }
148 
149     public SystemOptions getUniversityFiscal() {
150         return universityFiscal;
151     }
152 
153     public void setUniversityFiscal(SystemOptions universityFiscal) {
154         this.universityFiscal = universityFiscal;
155     }
156 
157     /**
158      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
159      */
160     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
161         LinkedHashMap m = new LinkedHashMap();
162         m.put(OLEPropertyConstants.DOCUMENT_NUMBER, getDocumentNumber());
163         if (this.universityFiscalYear != null) {
164             m.put("universityFiscalYear", this.universityFiscalYear.toString());
165         }
166         m.put("chartOfAccountsCode", this.chartOfAccountsCode);
167         m.put("financialObjectCode", this.financialObjectCode);
168         return m;
169     }
170 }