KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > digester > xmlrules > CallParamTestObject


1 /* $Id: CallParamTestObject.java 156347 2005-03-06 22:42:30Z 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.xmlrules;
19
20
21
22 /**
23  * Object for use with testing call param rules.
24  *
25  * @author Robert Burrell Donkin
26  */

27 public class CallParamTestObject {
28     
29     private String JavaDoc left = "UNSET";
30     private String JavaDoc right = "UNSET";
31     private String JavaDoc middle = "UNSET";
32     
33     public void triple(String JavaDoc left, String JavaDoc middle, String JavaDoc right) {
34         this.left = left;
35         this.right = right;
36         this.middle = middle;
37     }
38    
39     public void duo(String JavaDoc left, String JavaDoc right) {
40         this.left = left;
41         this.right = right;
42     }
43       
44     public String JavaDoc getLeft() {
45         return left;
46     }
47     
48     public String JavaDoc getRight() {
49         return right;
50     }
51     
52     public String JavaDoc getMiddle() {
53         return middle;
54     }
55
56     public void setLeft(String JavaDoc left) {
57         this.left=left;
58     }
59     
60     public void setRight(String JavaDoc right) {
61         this.right = right;
62     }
63     
64     public void setMiddle(String JavaDoc middle) {
65         this.middle = middle;
66     }
67     
68     public String JavaDoc toString() {
69         return "LEFT: " + left + " MIDDLE:" + middle + " RIGHT:" + right;
70     }
71 }
72
Popular Tags