View Javadoc

1   /*
2    * Copyright 2006-2008 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.rice.kns.test.document.bo;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.kns.bo.PersistableBusinessObjectExtensionBase;
22  
23  
24  
25  public class AccountExtension extends PersistableBusinessObjectExtensionBase {
26      
27      private String number;
28      private String accountTypeCode;
29      private AccountType accountType; 
30      
31      public String getNumber() {
32          return number;
33      }
34  
35      public void setNumber(String number) {
36          this.number = number;
37      }
38  
39      @Override
40      protected LinkedHashMap toStringMapper() {
41          LinkedHashMap propMap = new LinkedHashMap();
42          propMap.put("number", getNumber());
43          propMap.put("accountTypeCode", getAccountTypeCode());
44          return propMap;
45      }
46  
47      public String getAccountTypeCode() {
48          return accountTypeCode;
49      }
50  
51      public void setAccountTypeCode(String accountTypeCode) {
52          this.accountTypeCode = accountTypeCode;
53      }
54  
55  	public AccountType getAccountType() {
56  		return accountType;
57  	}
58  
59  	public void setAccountType(AccountType accountType) {
60  		this.accountType = accountType;
61  	}
62  
63   
64  }