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_v3;
18
19 import java.io.Serializable;
20
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.XmlTransient;
25 import javax.xml.bind.annotation.XmlType;
26 import javax.xml.bind.annotation.XmlValue;
27
28 /**
29 * The overviewURL appears as a child of the overviewDoc, which appears twice in
30 * the UDDI information model, once with tModel element and once with
31 * tModelInstanceInfo element. There are two conventions established, "text" and
32 * "wsdlInterface".
33 * <p>Java class for overviewURL complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained
36 * within this class.
37 *
38 * <pre>
39 * <complexType name="overviewURL">
40 * <simpleContent>
41 * <extension base="<urn:uddi-org:api_v3>validationTypeAnyURI4096">
42 * <attribute name="useType" type="{urn:uddi-org:api_v3}useType" default="" />
43 * </extension>
44 * </simpleContent>
45 * </complexType>
46 * </pre>
47 *
48 *
49 */
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "overviewURL", propOrder = {
52 "value"
53 })
54 public class OverviewURL implements Serializable {
55
56 /**
57 * default const
58 */
59 public OverviewURL() {
60 }
61
62 /**
63 * convenience const
64 *
65 * @param val
66 * @param type There are two conventions established, "text" and
67 * "wsdlInterface".
68 */
69 public OverviewURL(String val, String type) {
70 value = val;
71 useType = type;
72 }
73 @XmlTransient
74 private static final long serialVersionUID = 7142971435321837783L;
75 @XmlValue
76 protected String value;
77 @XmlAttribute
78 protected String useType;
79
80 /**
81 * Gets the value of the value property.
82 *
83 * @return possible object is {@link String }
84 *
85 */
86 public String getValue() {
87 return value;
88 }
89
90 /**
91 * Sets the value of the value property.
92 *
93 * @param value allowed object is {@link String }
94 *
95 */
96 public void setValue(String value) {
97 this.value = value;
98 }
99
100 /**
101 * Gets the value of the useType property. There are two conventions
102 * established, "text" and "wsdlInterface".
103 *
104 * @return possible object is {@link String }
105 *
106 */
107 public String getUseType() {
108 if (useType == null) {
109 return "";
110 } else {
111 return useType;
112 }
113 }
114
115 /**
116 * Sets the value of the useType property.
117 *
118 * @param value allowed object is {@link String } There are two conventions
119 * established, "text" and "wsdlInterface".
120 *
121 */
122 public void setUseType(String value) {
123 this.useType = value;
124 }
125 }