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 email complex type.
33 *
34 * <p>The following schema fragment specifies the expected content contained within this class.
35 *
36 * <pre>
37 * <complexType name="email">
38 * <simpleContent>
39 * <extension base="<urn:uddi-org:api_v3>validationTypeString255">
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 = "email", propOrder = {
50 "value"
51 })
52 public class Email implements Serializable{
53 public Email(){}
54 public Email(String val, String type){
55 value=val;
56 useType=type;
57 }
58 @XmlTransient
59 private static final long serialVersionUID = -1865977988663098552L;
60 @XmlValue
61 protected String value;
62 @XmlAttribute
63 protected String useType;
64
65 /**
66 * Gets the value of the value property.
67 *
68 * @return
69 * possible object is
70 * {@link String }
71 *
72 */
73 public String getValue() {
74 return value;
75 }
76
77 /**
78 * Sets the value of the value property.
79 *
80 * @param value
81 * allowed object is
82 * {@link String }
83 *
84 */
85 public void setValue(String value) {
86 this.value = value;
87 }
88
89 /**
90 * Gets the value of the useType property.
91 *
92 * @return
93 * possible object is
94 * {@link String }
95 *
96 */
97 public String getUseType() {
98 if (useType == null) {
99 return "";
100 } else {
101 return useType;
102 }
103 }
104
105 /**
106 * Sets the value of the useType property.
107 *
108 * @param value
109 * allowed object is
110 * {@link String }
111 *
112 */
113 public void setUseType(String value) {
114 this.useType = value;
115 }
116
117 }