KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > views > freemarker > TestBean


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 /*
6  * Created on 1/10/2003
7  *
8  */

9 package com.opensymphony.webwork.views.freemarker;
10
11
12 /**
13  * @author CameronBraid
14  */

15 public class TestBean {
16     //~ Instance fields ////////////////////////////////////////////////////////
17

18     private String JavaDoc pName = null;
19     private String JavaDoc pValue = null;
20
21     //~ Constructors ///////////////////////////////////////////////////////////
22

23     /**
24      *
25      */

26     public TestBean(String JavaDoc name, String JavaDoc value) {
27         super();
28         setName(name);
29         setValue(value);
30     }
31
32     //~ Methods ////////////////////////////////////////////////////////////////
33

34     public void setName(String JavaDoc aName) {
35         pName = aName;
36     }
37
38     /**
39      * Bean Property String Name
40      */

41     public String JavaDoc getName() {
42         return pName;
43     }
44
45     public void setValue(String JavaDoc aValue) {
46         pValue = aValue;
47     }
48
49     /**
50      * Bean Property String Value
51      */

52     public String JavaDoc getValue() {
53         return pValue;
54     }
55 }
56
Popular Tags