001: /*
002: * Copyright 2007 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: */
016:
017: package org.kuali.module.chart.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.GlobalBusinessObjectDetailBase;
022: import org.kuali.kfs.KFSPropertyConstants;
023:
024: /**
025: *
026: */
027: public class ObjectCodeGlobalDetail extends
028: GlobalBusinessObjectDetailBase {
029:
030: private Integer universityFiscalYear;
031: private String chartOfAccountsCode;
032: private String financialObjectCode;
033:
034: private Chart chartOfAccounts;
035:
036: /**
037: * Default constructor.
038: */
039: public ObjectCodeGlobalDetail() {
040:
041: }
042:
043: /**
044: * Gets the universityFiscalYear attribute.
045: *
046: * @return Returns the universityFiscalYear
047: */
048: public Integer getUniversityFiscalYear() {
049: return universityFiscalYear;
050: }
051:
052: /**
053: * Sets the universityFiscalYear attribute.
054: *
055: * @param universityFiscalYear The universityFiscalYear to set.
056: */
057: public void setUniversityFiscalYear(Integer universityFiscalYear) {
058: this .universityFiscalYear = universityFiscalYear;
059: }
060:
061: /**
062: * Gets the chartOfAccountsCode attribute.
063: *
064: * @return Returns the chartOfAccountsCode
065: */
066: public String getChartOfAccountsCode() {
067: return chartOfAccountsCode;
068: }
069:
070: /**
071: * Sets the chartOfAccountsCode attribute.
072: *
073: * @param chartOfAccountsCode The chartOfAccountsCode to set.
074: */
075: public void setChartOfAccountsCode(String chartOfAccountsCode) {
076: this .chartOfAccountsCode = chartOfAccountsCode;
077: }
078:
079: /**
080: * Gets the chartOfAccounts attribute.
081: *
082: * @return Returns the chartOfAccounts
083: */
084: public Chart getChartOfAccounts() {
085: return chartOfAccounts;
086: }
087:
088: /**
089: * Sets the chartOfAccounts attribute.
090: *
091: * @param chartOfAccounts The chartOfAccounts to set.
092: * @deprecated
093: */
094: public void setChartOfAccounts(Chart chartOfAccounts) {
095: this .chartOfAccounts = chartOfAccounts;
096: }
097:
098: /**
099: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
100: */
101: protected LinkedHashMap toStringMapper() {
102: LinkedHashMap m = new LinkedHashMap();
103: m
104: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
105: getDocumentNumber());
106: if (this .universityFiscalYear != null) {
107: m.put("universityFiscalYear", this .universityFiscalYear
108: .toString());
109: }
110: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
111: return m;
112: }
113:
114: public String getFinancialObjectCode() {
115: return financialObjectCode;
116: }
117:
118: public void setFinancialObjectCode(String financialObjectCode) {
119: this.financialObjectCode = financialObjectCode;
120: }
121: }
|