KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > scarab > GlobalAttributeOption


1 package org.apache.commons.betwixt.scarab;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * 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 import java.io.Serializable JavaDoc;
19
20 /**
21  * <p><code>GlobalAttributeOption</code> is a sample bean for use by the test cases.</p>
22  *
23  * @author <a HREF="mailto:jason@zenplex.com">Jason van Zyl</a>
24  * @version $Id: GlobalAttributeOption.java,v 1.4 2002/06/05 07:57:07 jstrachan Exp $
25  */

26 public class GlobalAttributeOption implements Serializable JavaDoc
27 {
28     private String JavaDoc name;
29     private String JavaDoc preferredOrder;
30     private String JavaDoc childOption;
31
32     /**
33      * Constructor for the ScarabSettings object
34      */

35     public GlobalAttributeOption()
36     {
37     }
38     
39     public String JavaDoc toString() {
40         return super.toString() + "[name=" + name + ";childOption=" + childOption + "]";
41     }
42
43     public void setName(String JavaDoc name)
44     {
45         this.name = name;
46     }
47     
48     public String JavaDoc getName()
49     {
50         return name;
51     }
52
53     public void setChildOption(String JavaDoc name)
54     {
55         this.childOption = name;
56     }
57     
58     public String JavaDoc getChildOption()
59     {
60         return childOption;
61     }
62
63     public String JavaDoc getPreferredOrder()
64     {
65         return preferredOrder;
66     }
67
68     public void setPreferredOrder(String JavaDoc value)
69     {
70         this.preferredOrder = value;
71     }
72 }
73
Popular Tags