View Javadoc

1   /*
2    * $Id: Person.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.tck.testmodels.services;
12  
13  /**
14   * <code>Person</code> part of the PeopleService
15   */
16  
17  public class Person
18  {
19      private String firstName;
20      private String lastName;
21      private Address address = new Address();
22  
23      public Person()
24      {
25          super();
26      }
27  
28      public Person(String firstName, String lastName)
29      {
30          this.firstName = firstName;
31          this.lastName = lastName;
32      }
33  
34      public String getFirstName()
35      {
36          return firstName;
37      }
38  
39      public void setFirstName(String firstName)
40      {
41          this.firstName = firstName;
42      }
43  
44      public String getLastName()
45      {
46          return lastName;
47      }
48  
49      public void setLastName(String lastName)
50      {
51          this.lastName = lastName;
52      }
53  
54      public String 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  }