KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > dotbetwixt > MixedUpdatersBean


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
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  
17 package org.apache.commons.betwixt.dotbetwixt;
18
19 import java.util.ArrayList JavaDoc;
20 import java.util.List JavaDoc;
21
22 /**
23   * This is a simple bean used to test customized updaters.
24   *
25   * @author Robert Burrell Donkin
26   */

27 public class MixedUpdatersBean {
28     
29 //-------------------------- Attributes
30
private String JavaDoc name;
31     private String JavaDoc badName = "**UNSET**";
32     private List JavaDoc items = new ArrayList JavaDoc();
33     private List JavaDoc badItems = new ArrayList JavaDoc();
34     
35 //-------------------------- Constructors
36

37     public MixedUpdatersBean() {}
38
39     public MixedUpdatersBean(String JavaDoc name) {
40         setName(name);
41     }
42         
43 //--------------------------- Properties
44

45     public String JavaDoc getName() {
46         return name;
47     }
48     
49     public void setName(String JavaDoc name) {
50         this.name = name;
51     }
52     
53     public List JavaDoc getItems() {
54         return items;
55     }
56     
57     public void addItem(String JavaDoc item) {
58         items.add(item);
59     }
60     
61     public String JavaDoc getBadName() {
62         return badName;
63     }
64     
65     public void badNameSetter(String JavaDoc badName) {
66         this.badName = badName;
67     }
68     
69     public List JavaDoc getBadItems() {
70         return badItems;
71     }
72     
73     public void badItemAdder(String JavaDoc badItem) {
74         badItems.add(badItem);
75     }
76 }
77
Popular Tags