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;
20  import java.util.List;
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 name;
31      private String badName = "**UNSET**";
32      private List items = new ArrayList();
33      private List badItems = new ArrayList();
34      
35  //-------------------------- Constructors
36  
37      public MixedUpdatersBean() {}
38  
39      public MixedUpdatersBean(String name) {
40          setName(name);
41      }
42          
43  //--------------------------- Properties
44  
45      public String getName() {
46          return name;
47      }
48      
49      public void setName(String name) {
50          this.name = name;
51      }	
52      
53      public List getItems() {
54          return items;
55      }
56      
57      public void addItem(String item) {
58          items.add(item);
59      }
60      
61      public String getBadName() {
62          return badName;
63      }
64      
65      public void badNameSetter(String badName) {
66          this.badName = badName;
67      }
68      
69      public List getBadItems() {
70          return badItems;
71      }
72      
73      public void badItemAdder(String badItem) {
74          badItems.add(badItem);
75      }	
76  }