View Javadoc
1   /**
2    *
3    */
4   package org.opentrafficsim.road.network.factory.vissim;
5   
6   import javax.xml.bind.annotation.XmlAttribute;
7   import javax.xml.bind.annotation.XmlElement;
8   import javax.xml.bind.annotation.XmlRootElement;
9   
10  /**
11   * @author p070518
12   */
13  @XmlRootElement
14  public class Customer
15  {
16  
17      String name;
18  
19      int age;
20  
21      int id;
22  
23      public String getName()
24      {
25          return name;
26      }
27  
28      @XmlElement
29      public void setName(String name)
30      {
31          this.name = name;
32      }
33  
34      public int getAge()
35      {
36          return age;
37      }
38  
39      @XmlElement
40      public void setAge(int age)
41      {
42          this.age = age;
43      }
44  
45      public int getId()
46      {
47          return id;
48      }
49  
50      @XmlAttribute
51      public void setId(int id)
52      {
53          this.id = id;
54      }
55  
56  }