1 /*
2 * Copyright 2001-2008 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17 package org.uddi.api_v2;
18
19 import java.util.ArrayList;
20 import java.util.List;
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlAttribute;
24 import javax.xml.bind.annotation.XmlElement;
25 import javax.xml.bind.annotation.XmlType;
26
27
28 /**
29 * <p>Java class for contact complex type.
30 *
31 * <p>The following schema fragment specifies the expected content contained within this class.
32 *
33 * <pre>
34 * <complexType name="contact">
35 * <complexContent>
36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37 * <sequence>
38 * <element ref="{urn:uddi-org:api_v2}description" maxOccurs="unbounded" minOccurs="0"/>
39 * <element ref="{urn:uddi-org:api_v2}personName"/>
40 * <element ref="{urn:uddi-org:api_v2}phone" maxOccurs="unbounded" minOccurs="0"/>
41 * <element ref="{urn:uddi-org:api_v2}email" maxOccurs="unbounded" minOccurs="0"/>
42 * <element ref="{urn:uddi-org:api_v2}address" maxOccurs="unbounded" minOccurs="0"/>
43 * </sequence>
44 * <attribute name="useType" type="{http://www.w3.org/2001/XMLSchema}string" />
45 * </restriction>
46 * </complexContent>
47 * </complexType>
48 * </pre>
49 *
50 *
51 */
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "contact", propOrder = {
54 "description",
55 "personName",
56 "phone",
57 "email",
58 "address"
59 })
60 public class Contact {
61
62 protected List<Description> description;
63 @XmlElement(required = true)
64 protected String personName;
65 protected List<Phone> phone;
66 protected List<Email> email;
67 protected List<Address> address;
68 @XmlAttribute(name = "useType")
69 protected String useType;
70
71 /**
72 * Gets the value of the description property.
73 *
74 * <p>
75 * This accessor method returns a reference to the live list,
76 * not a snapshot. Therefore any modification you make to the
77 * returned list will be present inside the JAXB object.
78 * This is why there is not a <CODE>set</CODE> method for the description property.
79 *
80 * <p>
81 * For example, to add a new item, do as follows:
82 * <pre>
83 * getDescription().add(newItem);
84 * </pre>
85 *
86 *
87 * <p>
88 * Objects of the following type(s) are allowed in the list
89 * {@link Description }
90 *
91 *
92 */
93 public List<Description> getDescription() {
94 if (description == null) {
95 description = new ArrayList<Description>();
96 }
97 return this.description;
98 }
99
100 /**
101 * Gets the value of the personName property.
102 *
103 * @return
104 * possible object is
105 * {@link String }
106 *
107 */
108 public String getPersonName() {
109 return personName;
110 }
111
112 /**
113 * Sets the value of the personName property.
114 *
115 * @param value
116 * allowed object is
117 * {@link String }
118 *
119 */
120 public void setPersonName(String value) {
121 this.personName = value;
122 }
123
124 /**
125 * Gets the value of the phone property.
126 *
127 * <p>
128 * This accessor method returns a reference to the live list,
129 * not a snapshot. Therefore any modification you make to the
130 * returned list will be present inside the JAXB object.
131 * This is why there is not a <CODE>set</CODE> method for the phone property.
132 *
133 * <p>
134 * For example, to add a new item, do as follows:
135 * <pre>
136 * getPhone().add(newItem);
137 * </pre>
138 *
139 *
140 * <p>
141 * Objects of the following type(s) are allowed in the list
142 * {@link Phone }
143 *
144 *
145 */
146 public List<Phone> getPhone() {
147 if (phone == null) {
148 phone = new ArrayList<Phone>();
149 }
150 return this.phone;
151 }
152
153 /**
154 * Gets the value of the email property.
155 *
156 * <p>
157 * This accessor method returns a reference to the live list,
158 * not a snapshot. Therefore any modification you make to the
159 * returned list will be present inside the JAXB object.
160 * This is why there is not a <CODE>set</CODE> method for the email property.
161 *
162 * <p>
163 * For example, to add a new item, do as follows:
164 * <pre>
165 * getEmail().add(newItem);
166 * </pre>
167 *
168 *
169 * <p>
170 * Objects of the following type(s) are allowed in the list
171 * {@link Email }
172 *
173 *
174 */
175 public List<Email> getEmail() {
176 if (email == null) {
177 email = new ArrayList<Email>();
178 }
179 return this.email;
180 }
181
182 /**
183 * Gets the value of the address property.
184 *
185 * <p>
186 * This accessor method returns a reference to the live list,
187 * not a snapshot. Therefore any modification you make to the
188 * returned list will be present inside the JAXB object.
189 * This is why there is not a <CODE>set</CODE> method for the address property.
190 *
191 * <p>
192 * For example, to add a new item, do as follows:
193 * <pre>
194 * getAddress().add(newItem);
195 * </pre>
196 *
197 *
198 * <p>
199 * Objects of the following type(s) are allowed in the list
200 * {@link Address }
201 *
202 *
203 */
204 public List<Address> getAddress() {
205 if (address == null) {
206 address = new ArrayList<Address>();
207 }
208 return this.address;
209 }
210
211 /**
212 * Gets the value of the useType property.
213 *
214 * @return
215 * possible object is
216 * {@link String }
217 *
218 */
219 public String getUseType() {
220 return useType;
221 }
222
223 /**
224 * Sets the value of the useType property.
225 *
226 * @param value
227 * allowed object is
228 * {@link String }
229 *
230 */
231 public void setUseType(String value) {
232 this.useType = value;
233 }
234
235 }