KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > spice > jndikit > test > TestData


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.spice.jndikit.test;
9
10 import java.io.Serializable JavaDoc;
11 import javax.naming.Context JavaDoc;
12
13 /**
14  * Helper class for testing behaviour of {@link Context#bind} operations.
15  *
16  * @author <a HREF="mailto:tma@netspace.net.au">Tim Anderson</a>
17  * @version $Revision: 1.1 $ $Date: 2005/06/30 04:22:16 $
18  */

19 public class TestData implements Serializable JavaDoc
20 {
21
22     /**
23      * Arbitrary test value.
24      */

25     private String JavaDoc _value;
26
27
28     /**
29      * Default ctor for serialization.
30      */

31     public TestData()
32     {
33     }
34
35     /**
36      * Construct a new <code>TestData</code>.
37      *
38      * @param value test data
39      */

40     public TestData( String JavaDoc value )
41     {
42         _value = value;
43     }
44
45     /**
46      * Sets the value of this.
47      *
48      * @param value the value
49      */

50     public void setValue( String JavaDoc value )
51     {
52         _value = value;
53     }
54
55     /**
56      * Returns the value of this.
57      *
58      * @return the value of this, assigned during construction
59      */

60     public String JavaDoc getValue()
61     {
62         return _value;
63     }
64
65 }
66
Popular Tags