001: /*
002: * Copyright 2005-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: package org.kuali.module.gl.bo;
017:
018: import java.sql.Date;
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Options;
023: import org.kuali.module.chart.bo.AccountingPeriod;
024:
025: /**
026: * Represents a specific university date
027: *
028: */
029: public class UniversityDate extends PersistableBusinessObjectBase {
030: static final long serialVersionUID = 2587833750168955556L;
031:
032: private Date universityDate;
033: private Integer universityFiscalYear;
034: private String universityFiscalAccountingPeriod;
035:
036: private AccountingPeriod accountingPeriod;
037: private Options options;
038:
039: /*
040: * (non-Javadoc)
041: *
042: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
043: */
044: protected LinkedHashMap toStringMapper() {
045: LinkedHashMap map = new LinkedHashMap();
046: map.put("universityDate", getUniversityDate());
047: return map;
048: }
049:
050: /**
051: * @return Returns the universityDate.
052: */
053: public Date getUniversityDate() {
054: return universityDate;
055: }
056:
057: /**
058: * @param universityDate The universityDate to set.
059: */
060: public void setUniversityDate(Date universityDate) {
061: this .universityDate = universityDate;
062: }
063:
064: /**
065: * @return Returns the universityFiscalAccountingPeriod.
066: */
067: public String getUniversityFiscalAccountingPeriod() {
068: return universityFiscalAccountingPeriod;
069: }
070:
071: /**
072: * @param universityFiscalAccountingPeriod The universityFiscalAccountingPeriod to set.
073: */
074: public void setUniversityFiscalAccountingPeriod(
075: String universityFiscalAccountingPeriod) {
076: this .universityFiscalAccountingPeriod = universityFiscalAccountingPeriod;
077: }
078:
079: /**
080: * @return Returns the universityFiscalYear.
081: */
082: public Integer getUniversityFiscalYear() {
083: return universityFiscalYear;
084: }
085:
086: /**
087: * @param universityFiscalYear The universityFiscalYear to set.
088: */
089: public void setUniversityFiscalYear(Integer universityFiscalYear) {
090: this .universityFiscalYear = universityFiscalYear;
091: }
092:
093: /**
094: * @return Returns the accountingPeriod.
095: */
096: public AccountingPeriod getAccountingPeriod() {
097: return accountingPeriod;
098: }
099:
100: /**
101: * @param accountingPeriod The accountingPeriod to set.
102: * @deprecated
103: */
104: public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
105: this .accountingPeriod = accountingPeriod;
106: }
107:
108: /**
109: * Gets the options attribute.
110: *
111: * @return Returns the options.
112: */
113: public Options getOptions() {
114: return options;
115: }
116:
117: /**
118: * Sets the options attribute value.
119: *
120: * @param options The options to set.
121: * @deprecated
122: */
123: public void setOptions(Options options) {
124: this.options = options;
125: }
126:
127: }
|