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.json.model;
8   
9   import org.codehaus.jackson.map.annotate.JsonSerialize;
10  
11  import java.util.List;
12  
13  /**
14   * A Person object
15   */
16  @JsonSerialize
17  public class Person
18  {
19      private String name;
20      private String dob;
21  
22      private List<EmailAddress> emailAddresses;
23  
24      public String getName()
25      {
26          return name;
27      }
28  
29      public void setName(String name)
30      {
31          this.name = name;
32      }
33  
34      public String getDob()
35      {
36          return dob;
37      }
38  
39      public void setDob(String dob)
40      {
41          this.dob = dob;
42      }
43  
44      public List<EmailAddress> getEmailAddresses()
45      {
46          return emailAddresses;
47      }
48  
49      public void setEmailAddresses(List<EmailAddress> emailAddresses)
50      {
51          this.emailAddresses = emailAddresses;
52      }
53  }