View Javadoc

1   /*
2    * $Id: NestedBean.java 421486 2006-07-13 03:37:08Z wsmoak $
3    *
4    * Copyright 2005 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  
19  package examples.bean;
20  
21  import java.io.Serializable;
22  
23  
24  /***
25   * Another Example Bean
26   *
27   * @version $Rev: 421486 $ $Date: 2006-07-12 20:37:08 -0700 (Wed, 12 Jul 2006) $
28   */
29  public class NestedBean implements Serializable {
30  
31      // ------------------------------------------------------ Instance Variables
32  
33      /*** A string value */
34      private String stringValue = "This is a string from NestedBean";
35  
36      // ------------------------------------------------------------ Constructors
37  
38      /***
39       * Constructor for NestedBean.
40       */
41      public NestedBean() {
42          super();
43      }
44  
45      // -------------------------------------------------------------- Properties
46  
47  
48      /***
49       * Returns the stringValue.
50       * @return String
51       */
52      public String getStringValue() {
53          return stringValue;
54      }
55  
56      /***
57       * Sets the stringValue.
58       * @param stringValue The stringValue to set
59       */
60      public void setStringValue(String stringValue) {
61          this.stringValue = stringValue;
62      }
63  
64   }