Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
PersonDocument |
|
| 0.0;0 |
1 | /** |
|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
|
3 | * contributor license agreements. See the NOTICE file distributed with |
|
4 | * this work for additional information regarding copyright ownership. |
|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
6 | * (the "License"); you may not use this file except in compliance with |
|
7 | * the License. You may obtain a copy of the License at |
|
8 | * |
|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | * |
|
11 | * Unless required by applicable law or agreed to in writing, software |
|
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | * See the License for the specific language governing permissions and |
|
15 | * limitations under the License. |
|
16 | */ |
|
17 | package org.apache.camel.example.etl; |
|
18 | ||
19 | import javax.xml.bind.annotation.XmlAccessType; |
|
20 | import javax.xml.bind.annotation.XmlAccessorType; |
|
21 | import javax.xml.bind.annotation.XmlAttribute; |
|
22 | import javax.xml.bind.annotation.XmlElement; |
|
23 | import javax.xml.bind.annotation.XmlRootElement; |
|
24 | ||
25 | /** |
|
26 | * @version $Revision: 1.1 $ |
|
27 | */ |
|
28 | @XmlRootElement(name = "person") |
|
29 | @XmlAccessorType(XmlAccessType.FIELD) |
|
30 | 0 | public class PersonDocument { |
31 | @XmlAttribute |
|
32 | private String user; |
|
33 | @XmlElement |
|
34 | private String firstName; |
|
35 | @XmlElement |
|
36 | private String lastName; |
|
37 | @XmlElement |
|
38 | private String city; |
|
39 | ||
40 | @Override |
|
41 | public String toString() { |
|
42 | 0 | return "Person[user: " + user + "]"; |
43 | } |
|
44 | ||
45 | public String getCity() { |
|
46 | 0 | return city; |
47 | } |
|
48 | ||
49 | public void setCity(String city) { |
|
50 | 0 | this.city = city; |
51 | 0 | } |
52 | ||
53 | public String getFirstName() { |
|
54 | 0 | return firstName; |
55 | } |
|
56 | ||
57 | public void setFirstName(String firstName) { |
|
58 | 0 | this.firstName = firstName; |
59 | 0 | } |
60 | ||
61 | public String getLastName() { |
|
62 | 0 | return lastName; |
63 | } |
|
64 | ||
65 | public void setLastName(String lastName) { |
|
66 | 0 | this.lastName = lastName; |
67 | 0 | } |
68 | ||
69 | public String getUser() { |
|
70 | 0 | return user; |
71 | } |
|
72 | ||
73 | public void setUser(String user) { |
|
74 | 0 | this.user = user; |
75 | 0 | } |
76 | } |