KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > testmodel > PersonBean


1 /*****************************************************************************
2  * Copyright (C) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by Joerg Schaible *
9  *****************************************************************************/

10 package tests.jfun.yan.testmodel;
11
12 public class PersonBean {
13     private String JavaDoc name;
14     private boolean started;
15     public void setName(String JavaDoc name) {
16         this.name = name;
17     }
18     public String JavaDoc getName() {
19         return name;
20     }
21     public void start(){
22       started = true;
23     }
24     public void stop(){
25       started = false;
26     }
27     public boolean isStarted(){
28       return started;
29     }
30 }
31
Popular Tags