KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > digester > ParamBean


1 /* $Id: ParamBean.java 180258 2005-06-06 08:25:55Z skitching $
2  *
3  * Copyright 2001-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.commons.digester;
19
20
21 /**
22  * This bean is used to replicate a reasonably complex use case
23  * whose behaviour has changed from Digester 1.3 to 1.4.
24  *
25  * @author robert burrell donkin
26  */

27 public class ParamBean {
28     
29     private boolean cool;
30     private String JavaDoc that;
31     private String JavaDoc _this;
32     
33     public ParamBean() {}
34     
35     public boolean isCool() {
36         return cool;
37     }
38     
39     public void setCool(boolean cool) {
40         this.cool = cool;
41     }
42     
43     public String JavaDoc getThis() {
44         return _this;
45     }
46     
47     public String JavaDoc getThat() {
48         return that;
49     }
50     
51     public String JavaDoc setThisAndThat(String JavaDoc _this, String JavaDoc that) {
52         this._this = _this;
53         this.that = that;
54         return "The Other";
55     }
56 }
57
Popular Tags