01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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: * Created on Jul 27, 2004
18: *
19: */
20: package org.kuali.module.pdp.xml;
21:
22: import java.io.Serializable;
23: import java.math.BigDecimal;
24:
25: /**
26: * @author jsissom
27: */
28: public class XmlTrailer implements Serializable {
29: private int paymentCount;
30: private BigDecimal paymentTotalAmount;
31:
32: public XmlTrailer() {
33: super ();
34: }
35:
36: public void setField(String name, String value) {
37: if ("detail_count".equals(name)) {
38: int pc = Integer.parseInt(value);
39: setPaymentCount(pc);
40: } else if ("detail_tot_amt".equals(name)) {
41: setPaymentTotalAmount(new BigDecimal(value));
42: }
43: }
44:
45: /**
46: * @return Returns the paymentCount.
47: */
48: public int getPaymentCount() {
49: return paymentCount;
50: }
51:
52: /**
53: * @param paymentCount The paymentCount to set.
54: */
55: public void setPaymentCount(int paymentCount) {
56: this .paymentCount = paymentCount;
57: }
58:
59: /**
60: * @return Returns the paymentTotalAmount.
61: */
62: public BigDecimal getPaymentTotalAmount() {
63: return paymentTotalAmount;
64: }
65:
66: /**
67: * @param paymentTotalAmount The paymentTotalAmount to set.
68: */
69: public void setPaymentTotalAmount(BigDecimal paymentTotalAmount) {
70: this.paymentTotalAmount = paymentTotalAmount;
71: }
72: }
|