1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.ole.module.purap.util;
17  
18  
19  
20  
21  public class ExpiredOrClosedAccount {
22  
23      private String chartOfAccountsCode;
24      private String accountNumber;
25      private String subAccountNumber;
26      private boolean closedIndicator;
27      private boolean expiredIndicator;
28      private boolean continuationAccountMissing;
29  
30      
31  
32  
33      public ExpiredOrClosedAccount() {
34      }
35  
36      
37  
38  
39  
40  
41  
42  
43      public ExpiredOrClosedAccount(String chartOfAccountsCode, String accountNumber, String subAccountNumber) {
44          setChartOfAccountsCode(chartOfAccountsCode);
45          setAccountNumber(accountNumber);
46          setSubAccountNumber(subAccountNumber);
47      }
48  
49      public String getAccountNumber() {
50          return accountNumber;
51      }
52  
53      public void setAccountNumber(String accountNumber) {
54          this.accountNumber = accountNumber;
55      }
56  
57      public String getChartOfAccountsCode() {
58          return chartOfAccountsCode;
59      }
60  
61      public void setChartOfAccountsCode(String chartOfAccountsCode) {
62          this.chartOfAccountsCode = chartOfAccountsCode;
63      }
64  
65      public boolean isClosedIndicator() {
66          return closedIndicator;
67      }
68  
69      public void setClosedIndicator(boolean closedIndicator) {
70          this.closedIndicator = closedIndicator;
71      }
72  
73      public boolean isContinuationAccountMissing() {
74          return continuationAccountMissing;
75      }
76  
77      public void setContinuationAccountMissing(boolean continuationAccountMissing) {
78          this.continuationAccountMissing = continuationAccountMissing;
79      }
80  
81      public boolean isExpiredIndicator() {
82          return expiredIndicator;
83      }
84  
85      public void setExpiredIndicator(boolean expiredIndicator) {
86          this.expiredIndicator = expiredIndicator;
87      }
88  
89      public String getSubAccountNumber() {
90          return subAccountNumber;
91      }
92  
93      public void setSubAccountNumber(String subAccountNumber) {
94          this.subAccountNumber = subAccountNumber;
95      }
96  
97      
98  
99  
100 
101 
102     public String getAccountString() {
103         StringBuffer accountStr = new StringBuffer("");
104 
105         if (getChartOfAccountsCode() != null) {
106             accountStr.append(getChartOfAccountsCode());
107         }
108 
109         if (getAccountNumber() != null) {
110             accountStr.append("-");
111             accountStr.append(getAccountNumber());
112         }
113 
114         if (getSubAccountNumber() != null) {
115             accountStr.append("-");
116             accountStr.append(getSubAccountNumber());
117         }
118 
119         return accountStr.toString();
120     }
121 }