View Javadoc

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