View Javadoc
1   /*
2    * Copyright 2006 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.ole.fp.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
22  
23  /**
24   * This transient business object keeps properties for amount method selection
25   * drop-down box and create button actions.
26   */
27  public class CapitalAccountingLine extends TransientBusinessObjectBase {
28      protected String distributionCode;
29      protected boolean canCreateAsset;
30  
31      /**
32       * Default constructor.
33       */
34      public CapitalAccountingLine() {
35          canCreateAsset = true;
36      }
37      
38      
39      /**
40       * Gets the distributionCode attribute.
41       * 
42       * @return Returns the distributionCode
43       */
44      
45      public String getDistributionCode() {
46          return distributionCode;
47      }
48  
49      /** 
50       * Sets the distributionCode attribute.
51       * 
52       * @param distributionCode The distributionCode to set.
53       */
54      public void setDistributionCode(String distributionCode) {
55          this.distributionCode = distributionCode;
56      }
57  
58      /**
59       * Gets the canCreateAsset attribute.
60       * 
61       * @return Returns the canCreateAsset
62       */
63      
64      public boolean isCanCreateAsset() {
65          return canCreateAsset;
66      }
67  
68      /** 
69       * Sets the canCreateAsset attribute.
70       * 
71       * @param canCreateAsset The canCreateAsset to set.
72       */
73      public void setCanCreateAsset(boolean canCreateAsset) {
74          this.canCreateAsset = canCreateAsset;
75      }
76      
77      /**
78       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
79       */
80      
81      public LinkedHashMap toStringMapper_RICE20_REFACTORME() {
82          LinkedHashMap m = new LinkedHashMap();
83          m.put("distributionCode", this.getDistributionCode());
84          m.put("canCreateAsset", this.isCanCreateAsset());
85          return m;
86      }
87  }