View Javadoc

1   /* $Id: ParamBean.java 1102402 2011-05-12 18:03:26Z simonetripodi $
2    *
3    * Licensed to the Apache Software Foundation (ASF) under one or more
4    * contributor license agreements.  See the NOTICE file distributed with
5    * this work for additional information regarding copyright ownership.
6    * The ASF licenses this file to You under the Apache License, Version 2.0
7    * (the "License"); you may not use this file except in compliance with
8    * the License.  You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package org.apache.commons.digester3;
20  
21  /**
22   * This bean is used to replicate a reasonably complex use case whose behaviour has changed from Digester 1.3 to 1.4.
23   * 
24   * @author robert burrell donkin
25   */
26  public class ParamBean
27  {
28  
29      private boolean cool;
30  
31      private String that;
32  
33      private String _this;
34  
35      public ParamBean()
36      {
37      }
38  
39      public boolean isCool()
40      {
41          return cool;
42      }
43  
44      public void setCool( boolean cool )
45      {
46          this.cool = cool;
47      }
48  
49      public String getThis()
50      {
51          return _this;
52      }
53  
54      public String getThat()
55      {
56          return that;
57      }
58  
59      public String setThisAndThat( String _this, String that )
60      {
61          this._this = _this;
62          this.that = that;
63          return "The Other";
64      }
65  }