KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > test > integration > service > Person


1 /*
2  * $Id: Person.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.test.integration.service;
12
13 /**
14  * <code>Person</code> part of the PeopleService
15  */

16
17 public class Person
18 {
19     private String JavaDoc firstName;
20     private String JavaDoc lastName;
21     private Address address = new Address();
22
23     public Person()
24     {
25         super();
26     }
27
28     public Person(String JavaDoc firstName, String JavaDoc lastName)
29     {
30         this.firstName = firstName;
31         this.lastName = lastName;
32     }
33
34     public String JavaDoc getFirstName()
35     {
36         return firstName;
37     }
38
39     public void setFirstName(String JavaDoc firstName)
40     {
41         this.firstName = firstName;
42     }
43
44     public String JavaDoc getLastName()
45     {
46         return lastName;
47     }
48
49     public void setLastName(String JavaDoc lastName)
50     {
51         this.lastName = lastName;
52     }
53
54     public String JavaDoc toString()
55     {
56         return firstName + " " + lastName;
57     }
58
59     public Address getAddress()
60     {
61         return address;
62     }
63
64     public void setAddress(Address address)
65     {
66         this.address = address;
67     }
68
69 }
70
Popular Tags