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