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 import java.util.ArrayList;
23 import java.util.List;
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlTransient;
28 import javax.xml.bind.annotation.XmlType;
29
30
31 /**
32 * <p>Java class for relatedBusinessInfo complex type.
33 *
34 * <p>The following schema fragment specifies the expected content contained within this class.
35 *
36 * <pre>
37 * <complexType name="relatedBusinessInfo">
38 * <complexContent>
39 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40 * <sequence>
41 * <element ref="{urn:uddi-org:api_v3}businessKey"/>
42 * <element ref="{urn:uddi-org:api_v3}name" maxOccurs="unbounded"/>
43 * <element ref="{urn:uddi-org:api_v3}description" maxOccurs="unbounded" minOccurs="0"/>
44 * <element ref="{urn:uddi-org:api_v3}sharedRelationships" maxOccurs="2"/>
45 * </sequence>
46 * </restriction>
47 * </complexContent>
48 * </complexType>
49 * </pre>
50 *
51 *
52 */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "relatedBusinessInfo", propOrder = {
55 "businessKey",
56 "name",
57 "description",
58 "sharedRelationships"
59 })
60 public class RelatedBusinessInfo implements Serializable{
61 @XmlTransient
62 private static final long serialVersionUID = -8398683613825506892L;
63 @XmlElement(required = true)
64 protected String businessKey;
65 @XmlElement(required = true)
66 protected List<Name> name;
67 protected List<Description> description;
68 @XmlElement(required = true)
69 protected List<SharedRelationships> sharedRelationships;
70
71 /**
72 * Gets the value of the businessKey property.
73 *
74 * @return
75 * possible object is
76 * {@link String }
77 *
78 */
79 public String getBusinessKey() {
80 return businessKey;
81 }
82
83 /**
84 * Sets the value of the businessKey property.
85 *
86 * @param value
87 * allowed object is
88 * {@link String }
89 *
90 */
91 public void setBusinessKey(String value) {
92 this.businessKey = value;
93 }
94
95 /**
96 * Gets the value of the name property.
97 *
98 * <p>
99 * This accessor method returns a reference to the live list,
100 * not a snapshot. Therefore any modification you make to the
101 * returned list will be present inside the JAXB object.
102 * This is why there is not a <CODE>set</CODE> method for the name property.
103 *
104 * <p>
105 * For example, to add a new item, do as follows:
106 * <pre>
107 * getName().add(newItem);
108 * </pre>
109 *
110 *
111 * <p>
112 * Objects of the following type(s) are allowed in the list
113 * {@link Name }
114 *
115 *
116 */
117 public List<Name> getName() {
118 if (name == null) {
119 name = new ArrayList<Name>();
120 }
121 return this.name;
122 }
123
124 /**
125 * Gets the value of the description 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 description property.
132 *
133 * <p>
134 * For example, to add a new item, do as follows:
135 * <pre>
136 * getDescription().add(newItem);
137 * </pre>
138 *
139 *
140 * <p>
141 * Objects of the following type(s) are allowed in the list
142 * {@link Description }
143 *
144 *
145 */
146 public List<Description> getDescription() {
147 if (description == null) {
148 description = new ArrayList<Description>();
149 }
150 return this.description;
151 }
152
153 /**
154 * Gets the value of the sharedRelationships 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 sharedRelationships property.
161 *
162 * <p>
163 * For example, to add a new item, do as follows:
164 * <pre>
165 * getSharedRelationships().add(newItem);
166 * </pre>
167 *
168 *
169 * <p>
170 * Objects of the following type(s) are allowed in the list
171 * {@link SharedRelationships }
172 *
173 *
174 */
175 public List<SharedRelationships> getSharedRelationships() {
176 if (sharedRelationships == null) {
177 sharedRelationships = new ArrayList<SharedRelationships>();
178 }
179 return this.sharedRelationships;
180 }
181
182 }