KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > dozer > util > mapping > vo > MethodFieldTestObject2


1 /*
2  * Copyright 2005-2007 the original author or authors.
3  *
4  * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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 net.sf.dozer.util.mapping.vo;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * @author garsombke.franz
23  * @author sullins.ben
24  * @author tierney.matt
25  *
26  */

27 public class MethodFieldTestObject2 extends BaseTestObject {
28   List JavaDoc integerList = new ArrayList JavaDoc();
29   long totalPrice;
30   String JavaDoc fieldOne;
31
32   public void addIntegerToList(Integer JavaDoc integer) {
33     integerList.add(integer);
34   }
35
36   public void addToTotalPrice(long value) {
37     totalPrice += value;
38   }
39
40   public List JavaDoc getIntegerList() {
41     return integerList;
42   }
43   public long getTotalPrice() {
44     return totalPrice;
45   }
46   public void setTotalPrice(long totalPrice) {
47     this.totalPrice = totalPrice;
48   }
49   public void setIntegerList(List JavaDoc integerList) {
50     this.integerList = integerList;
51   }
52
53   public String JavaDoc getFieldOne() {
54     return fieldOne;
55   }
56
57   public void setFieldOne(String JavaDoc fieldOne) {
58     this.fieldOne = fieldOne;
59   }
60
61 }
62
Popular Tags