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    
020    import org.kuali.rice.kns.bo.DocumentHeader;
021    import org.kuali.rice.kns.bo.GlobalBusinessObjectDetailBase;
022    import org.kuali.rice.kns.util.KualiDecimal;
023    
024    /**
025     * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
026     */
027    
028    public class AssetRetirementGlobalDetail extends GlobalBusinessObjectDetailBase {
029    
030        private String documentNumber;
031        private Long capitalAssetNumber;
032        private DocumentHeader documentHeader;
033        private Asset asset;
034        private AssetRetirementGlobal assetRetirementGlobal;
035    
036        /**
037         * Default constructor.
038         */
039        public AssetRetirementGlobalDetail() {
040        }
041    
042        /**
043         * Gets the documentNumber attribute.
044         * 
045         * @return Returns the documentNumber
046         */
047        public String getDocumentNumber() {
048            return documentNumber;
049        }
050    
051        /**
052         * Sets the documentNumber attribute.
053         * 
054         * @param documentNumber The documentNumber to set.
055         */
056        public void setDocumentNumber(String documentNumber) {
057            this.documentNumber = documentNumber;
058        }
059    
060    
061        /**
062         * Gets the capitalAssetNumber attribute.
063         * 
064         * @return Returns the capitalAssetNumber
065         */
066        public Long getCapitalAssetNumber() {
067            return capitalAssetNumber;
068        }
069    
070        /**
071         * Sets the capitalAssetNumber attribute.
072         * 
073         * @param capitalAssetNumber The capitalAssetNumber to set.
074         */
075        public void setCapitalAssetNumber(Long capitalAssetNumber) {
076            this.capitalAssetNumber = capitalAssetNumber;
077        }
078    
079        /**
080         * Gets the asset attribute.
081         * 
082         * @return Returns the asset.
083         */
084        public Asset getAsset() {
085            return asset;
086        }
087    
088        /**
089         * Sets the asset attribute value.
090         * 
091         * @param asset The asset to set.
092         * @deprecated
093         */
094        public void setAsset(Asset asset) {
095            this.asset = asset;
096        }
097    
098    
099        public AssetRetirementGlobal getAssetRetirementGlobal() {
100            return assetRetirementGlobal;
101        }
102    
103        public void setAssetRetirementGlobal(AssetRetirementGlobal assetRetirementGlobal) {
104            this.assetRetirementGlobal = assetRetirementGlobal;
105        }
106    
107    
108        public DocumentHeader getDocumentHeader() {
109            return documentHeader;
110        }
111    
112        public void setDocumentHeader(DocumentHeader documentHeader) {
113            this.documentHeader = documentHeader;
114        }
115    
116        
117        /**
118         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
119         */
120        protected LinkedHashMap toStringMapper() {
121            LinkedHashMap m = new LinkedHashMap();
122            m.put("documentNumber", this.documentNumber);
123            if (this.capitalAssetNumber != null) {
124                m.put("capitalAssetNumber", this.capitalAssetNumber.toString());
125            }
126            return m;
127        }
128    }