View Javadoc

1   package ch.elca.el4j.tests.util.codingsupport.testclasses;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   /**
7    * @svnLink $Revision: 3874 $;$Date: 2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/modules/core/src/test/java/ch/elca/el4j/tests/util/codingsupport/testclasses/DefaultPerson.java $
8    */
9   public class DefaultPerson implements Person {
10  	protected String firstName;
11  	protected String lastName;
12  	protected int age;
13  	protected List<Person> children;
14  	protected boolean smart;
15  	
16  	public DefaultPerson() {
17  
18  		children = new ArrayList<Person>();
19  	}
20  
21  	public String getFirstName() {
22  		return firstName;
23  	}
24  
25  	public void setFirstName(String firstName) {
26  		this.firstName = firstName;
27  		//System.out.println("firstName has changed to " + firstName);
28  	}
29  
30  	public String getLastName() {
31  		return lastName;
32  	}
33  
34  	public void setLastName(String lastName) {
35  		this.lastName = lastName;
36  		//System.out.println("lastName has changed to " + lastName);
37  	}
38  
39  	public int getAge() {
40  		return age;
41  	}
42  
43  	public void setAge(int age) {
44  		this.age = age;
45  	}
46  
47  	
48  	public List<Person> getChildren() {
49  		return children;
50  	}
51  	
52  	public void setChildren(List<Person> children) {
53  		this.children = children;
54  	}
55  	
56  	public boolean getSmart() {
57  		return smart;
58  	}
59  	
60  	public void setSmart(boolean smart) {
61  		this.smart = smart;
62  	}
63  }