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
18
19 package org.uddi.api_v3;
20
21 import java.io.Serializable;
22
23 import javax.xml.bind.annotation.XmlAccessType;
24 import javax.xml.bind.annotation.XmlAccessorType;
25 import javax.xml.bind.annotation.XmlAttribute;
26 import javax.xml.bind.annotation.XmlTransient;
27 import javax.xml.bind.annotation.XmlType;
28 import javax.xml.bind.annotation.XmlValue;
29
30
31 /**
32 * <p>Java class for phone complex type.
33 *
34 * <p>The following schema fragment specifies the expected content contained within this class.
35 *
36 * <pre>
37 * <complexType name="phone">
38 * <simpleContent>
39 * <extension base="<urn:uddi-org:api_v3>validationTypeString50">
40 * <attribute name="useType" type="{urn:uddi-org:api_v3}useType" default="" />
41 * </extension>
42 * </simpleContent>
43 * </complexType>
44 * </pre>
45 *
46 *
47 */
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "phone", propOrder = {
50 "value"
51 })
52 public class Phone implements Serializable{
53 @XmlTransient
54 private static final long serialVersionUID = 7294266780822214086L;
55 @XmlValue
56 protected String value;
57 @XmlAttribute
58 protected String useType;
59
60 /**
61 * Gets the value of the value property.
62 *
63 * @return
64 * possible object is
65 * {@link String }
66 *
67 */
68 public String getValue() {
69 return value;
70 }
71
72 /**
73 * Sets the value of the value property.
74 *
75 * @param value
76 * allowed object is
77 * {@link String }
78 *
79 */
80 public void setValue(String value) {
81 this.value = value;
82 }
83
84 /**
85 * Gets the value of the useType property.
86 *
87 * @return
88 * possible object is
89 * {@link String }
90 *
91 */
92 public String getUseType() {
93 if (useType == null) {
94 return "";
95 } else {
96 return useType;
97 }
98 }
99
100 /**
101 * Sets the value of the useType property.
102 *
103 * @param value
104 * allowed object is
105 * {@link String }
106 *
107 */
108 public void setUseType(String value) {
109 this.useType = value;
110 }
111
112 }