View Javadoc
1   /*
2    * Copyright 2005 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  package org.kuali.ole.fp.document.web.struts;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import org.kuali.ole.fp.businessobject.CapitalAssetInformation;
22  import org.kuali.ole.fp.businessobject.InternalBillingItem;
23  import org.kuali.ole.fp.document.CapitalAssetEditable;
24  import org.kuali.ole.fp.document.InternalBillingDocument;
25  
26  /**
27   * This class is the action form for Internal Billing.
28   */
29  public class InternalBillingForm extends CapitalAccountingLinesFormBase implements CapitalAssetEditable{
30      protected static final long serialVersionUID = 1L;
31      protected InternalBillingItem newItem;
32      
33      protected List<CapitalAssetInformation> capitalAssetInformation;
34  
35      public InternalBillingForm() {
36          super();
37          
38          this.newItem = new InternalBillingItem();
39          capitalAssetInformation = new ArrayList<CapitalAssetInformation>();
40      }
41  
42      @Override
43      protected String getDefaultDocumentTypeName() {
44          return "OLE_IB";
45      }
46      
47      /**
48       * @return Returns the internalBillingDocument.
49       */
50      public InternalBillingDocument getInternalBillingDocument() {
51          return (InternalBillingDocument) getDocument();
52      }
53  
54      /**
55       * @param internalBillingDocument The internalBillingDocument to set.
56       */
57      public void setInternalBillingDocument(InternalBillingDocument internalBillingDocument) {
58          setDocument(internalBillingDocument);
59      }
60  
61      /**
62       * @return Returns the newItem.
63       */
64      public InternalBillingItem getNewItem() {
65          return newItem;
66      }
67  
68      /**
69       * @param newItem The newItem to set.
70       */
71      public void setNewItem(InternalBillingItem newItem) {
72          this.newItem = newItem;
73      }
74      
75      /**
76       * @see org.kuali.ole.fp.document.CapitalAssetEditable#getCapitalAssetInformation()
77       */
78      public List<CapitalAssetInformation> getCapitalAssetInformation() {
79          return this.capitalAssetInformation;
80      }
81  
82      /**
83       * @see org.kuali.ole.fp.document.CapitalAssetEditable#setCapitalAssetInformation(org.kuali.ole.fp.businessobject.CapitalAssetInformation)
84       */
85      public void setCapitalAssetInformation(List<CapitalAssetInformation> capitalAssetInformation) {
86          this.capitalAssetInformation = capitalAssetInformation;        
87      }
88  }