View Javadoc

1   /**
2    * Copyright 2004-2014 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.kpme.tklm.leave.accrual.bucket;
17  
18  import java.math.BigDecimal;
19  import org.kuali.kpme.core.accrualcategory.AccrualCategory;
20  import org.kuali.kpme.core.principal.PrincipalHRAttributes;
21  import org.kuali.kpme.tklm.api.leave.accrual.bucket.KPMEBalanceException;
22  import org.kuali.kpme.tklm.api.leave.accrual.bucket.UsageLimitBalanceContract;
23  import org.kuali.kpme.tklm.leave.block.LeaveBlock;
24  
25  public class UsageLimitBalance extends LeaveBalance implements UsageLimitBalanceContract {
26  
27  	private BigDecimal usageLimit;
28  	
29  	protected UsageLimitBalance(AccrualCategory accrualCategory, PrincipalHRAttributes principalCalendar) {
30  		super(accrualCategory, principalCalendar);
31  		usageLimit = BigDecimal.ZERO;
32  	}
33  
34  	@Override
35  	public void add(LeaveBlock leaveBlock) throws KPMEBalanceException {
36  		
37  	}
38  
39  	@Override
40  	public void remove(LeaveBlock leaveBlock) throws KPMEBalanceException {
41  
42  	}
43  
44  	@Override
45  	public String getBalanceType() {
46  		return getBalanceType();
47  	}
48  
49  	@Override
50  	public void adjust(LeaveBlock leaveBlock) throws KPMEBalanceException {
51  
52  	}
53  
54  	@Override
55  	public void clear() {
56  		usageLimit = new BigDecimal(0);
57  	}
58  
59  }