KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > jxpath > ri > axes > RecursiveBean


1 /*
2  * Copyright 1999-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 package org.apache.commons.jxpath.ri.axes;
17
18
19 /**
20  * This bean is used to test infinite recursion protection in
21  * descendant search contexts.
22  *
23  * @author Dmitri Plotnikov
24  * @version $Revision: 1.3 $ $Date: 2004/02/29 14:17:42 $
25  */

26 public class RecursiveBean {
27
28     private String JavaDoc name;
29     private RecursiveBean first;
30     private RecursiveBean second;
31
32     public RecursiveBean(String JavaDoc name) {
33         this.name = name;
34     }
35     
36     public String JavaDoc getName() {
37         return name;
38     }
39
40     public RecursiveBean getFirst() {
41         return first;
42     }
43
44     public void setFirst(RecursiveBean bean) {
45         this.first = bean;
46     }
47
48     public RecursiveBean getSecond() {
49         return second;
50     }
51
52     public void setSecond(RecursiveBean bean) {
53         second = bean;
54     }
55     
56     public String JavaDoc toString() {
57         return name;
58     }
59 }
60
Popular Tags