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: import org.kuali.kfs.bo.Options;
024:
025: /**
026: *
027: */
028: public class SubObjCdGlobalDetail extends
029: GlobalBusinessObjectDetailBase {
030:
031: private String documentNumber;
032: private Integer universityFiscalYear;
033: private String chartOfAccountsCode;
034: private String financialObjectCode;
035:
036: private ObjectCode financialObject;
037: private Options universityFiscal;
038: private Chart chartOfAccounts;
039:
040: /**
041: * Default constructor.
042: */
043: public SubObjCdGlobalDetail() {
044:
045: }
046:
047: /**
048: * Gets the documentNumber attribute.
049: *
050: * @return Returns the documentNumber
051: */
052: public String getDocumentNumber() {
053: return documentNumber;
054: }
055:
056: /**
057: * Sets the documentNumber attribute.
058: *
059: * @param documentNumber The documentNumber to set.
060: */
061: public void setDocumentNumber(String documentNumber) {
062: this .documentNumber = documentNumber;
063: }
064:
065: /**
066: * Gets the universityFiscalYear attribute.
067: *
068: * @return Returns the universityFiscalYear
069: */
070: public Integer getUniversityFiscalYear() {
071: return universityFiscalYear;
072: }
073:
074: /**
075: * Sets the universityFiscalYear attribute.
076: *
077: * @param universityFiscalYear The universityFiscalYear to set.
078: */
079: public void setUniversityFiscalYear(Integer universityFiscalYear) {
080: this .universityFiscalYear = universityFiscalYear;
081: }
082:
083: /**
084: * Gets the chartOfAccountsCode attribute.
085: *
086: * @return Returns the chartOfAccountsCode
087: */
088: public String getChartOfAccountsCode() {
089: return chartOfAccountsCode;
090: }
091:
092: /**
093: * Sets the chartOfAccountsCode attribute.
094: *
095: * @param chartOfAccountsCode The chartOfAccountsCode to set.
096: */
097: public void setChartOfAccountsCode(String chartOfAccountsCode) {
098: this .chartOfAccountsCode = chartOfAccountsCode;
099: }
100:
101: /**
102: * Gets the financialObjectCode attribute.
103: *
104: * @return Returns the financialObjectCode
105: */
106: public String getFinancialObjectCode() {
107: return financialObjectCode;
108: }
109:
110: /**
111: * Sets the financialObjectCode attribute.
112: *
113: * @param financialObjectCode The financialObjectCode to set.
114: */
115: public void setFinancialObjectCode(String financialObjectCode) {
116: this .financialObjectCode = financialObjectCode;
117: }
118:
119: /**
120: * Gets the financialObject attribute.
121: *
122: * @return Returns the financialObject
123: */
124: public ObjectCode getFinancialObject() {
125: return financialObject;
126: }
127:
128: /**
129: * Sets the financialObject attribute.
130: *
131: * @param financialObject The financialObject to set.
132: * @deprecated
133: */
134: public void setFinancialObject(ObjectCode financialObject) {
135: this .financialObject = financialObject;
136: }
137:
138: public Chart getChartOfAccounts() {
139: return chartOfAccounts;
140: }
141:
142: public void setChartOfAccounts(Chart chartOfAccounts) {
143: this .chartOfAccounts = chartOfAccounts;
144: }
145:
146: public Options getUniversityFiscal() {
147: return universityFiscal;
148: }
149:
150: public void setUniversityFiscal(Options universityFiscal) {
151: this .universityFiscal = universityFiscal;
152: }
153:
154: /**
155: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
156: */
157: protected LinkedHashMap toStringMapper() {
158: LinkedHashMap m = new LinkedHashMap();
159: m
160: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
161: getDocumentNumber());
162: if (this .universityFiscalYear != null) {
163: m.put("universityFiscalYear", this .universityFiscalYear
164: .toString());
165: }
166: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
167: m.put("financialObjectCode", this.financialObjectCode);
168: return m;
169: }
170: }
|