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.module.cam.businessobject;
017    
018    import java.util.LinkedHashMap;
019    import java.util.List;
020    
021    import org.kuali.kfs.sys.businessobject.FinancialSystemDocumentHeader;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    import org.kuali.rice.kns.util.KualiDecimal;
024    import org.kuali.rice.kns.util.TypedArrayList;
025    
026    public class AssetPaymentAssetDetail extends PersistableBusinessObjectBase {
027        private String documentNumber;
028        private Long capitalAssetNumber;
029        private KualiDecimal previousTotalCostAmount;
030        private Asset asset;
031        private List<AssetPaymentDetail> assetPaymentDetails;
032        private FinancialSystemDocumentHeader documentHeader;
033    
034        public AssetPaymentAssetDetail() { 
035            this.assetPaymentDetails = new TypedArrayList(AssetPaymentDetail.class);  
036            this.documentHeader = new FinancialSystemDocumentHeader(); 
037        }
038        
039        public Long getCapitalAssetNumber() {
040            return capitalAssetNumber;
041        }
042    
043        public void setCapitalAssetNumber(Long capitalAssetNumber) {
044            this.capitalAssetNumber = capitalAssetNumber;
045        }
046    
047        public String getDocumentNumber() {
048            return documentNumber;
049        }
050    
051        public void setDocumentNumber(String documentNumber) {
052            this.documentNumber = documentNumber;
053        }
054    
055        public KualiDecimal getPreviousTotalCostAmount() {
056            return previousTotalCostAmount;
057        }
058    
059        public void setPreviousTotalCostAmount(KualiDecimal previousTotalCostAmount) {
060            this.previousTotalCostAmount = previousTotalCostAmount;
061        }
062    
063        public Asset getAsset() {
064            return asset;
065        }
066    
067        public void setAsset(Asset asset) {
068            this.asset = asset;
069        }
070        
071        protected LinkedHashMap<String, String> toStringMapper() {
072            LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
073            if (this.documentNumber != null) {
074                m.put("documentNumber", this.documentNumber.toString());
075            }
076            if (this.capitalAssetNumber != null) {
077                m.put("capitalAssetNumber", this.capitalAssetNumber.toString());
078            }
079            return m;
080        }
081    
082        public List<AssetPaymentDetail> getAssetPaymentDetails() {
083            return assetPaymentDetails;
084        }
085    
086        public void setAssetPaymentDetails(List<AssetPaymentDetail> assetPaymentDetails) {
087            this.assetPaymentDetails = assetPaymentDetails;
088        }
089    
090        public FinancialSystemDocumentHeader getDocumentHeader() {
091            return documentHeader;
092        }
093    
094        public void setDocumentHeader(FinancialSystemDocumentHeader documentHeader) {
095            this.documentHeader = documentHeader;
096        }
097    
098    }