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