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_v2; 18 19 import java.util.ArrayList; 20 import java.util.List; 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.XmlElement; 25 import javax.xml.bind.annotation.XmlType; 26 27 28 /** 29 * <p>Java class for businessEntity complex type. 30 * 31 * <p>The following schema fragment specifies the expected content contained within this class. 32 * 33 * <pre> 34 * <complexType name="businessEntity"> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element ref="{urn:uddi-org:api_v2}discoveryURLs" minOccurs="0"/> 39 * <element ref="{urn:uddi-org:api_v2}name" maxOccurs="unbounded"/> 40 * <element ref="{urn:uddi-org:api_v2}description" maxOccurs="unbounded" minOccurs="0"/> 41 * <element ref="{urn:uddi-org:api_v2}contacts" minOccurs="0"/> 42 * <element ref="{urn:uddi-org:api_v2}businessServices" minOccurs="0"/> 43 * <element ref="{urn:uddi-org:api_v2}identifierBag" minOccurs="0"/> 44 * <element ref="{urn:uddi-org:api_v2}categoryBag" minOccurs="0"/> 45 * </sequence> 46 * <attribute name="businessKey" use="required" type="{urn:uddi-org:api_v2}businessKey" /> 47 * <attribute name="operator" type="{http://www.w3.org/2001/XMLSchema}string" /> 48 * <attribute name="authorizedName" type="{http://www.w3.org/2001/XMLSchema}string" /> 49 * </restriction> 50 * </complexContent> 51 * </complexType> 52 * </pre> 53 * 54 * 55 */ 56 @XmlAccessorType(XmlAccessType.FIELD) 57 @XmlType(name = "businessEntity", propOrder = { 58 "discoveryURLs", 59 "name", 60 "description", 61 "contacts", 62 "businessServices", 63 "identifierBag", 64 "categoryBag" 65 }) 66 public class BusinessEntity { 67 68 protected DiscoveryURLs discoveryURLs; 69 @XmlElement(required = true) 70 protected List<Name> name; 71 protected List<Description> description; 72 protected Contacts contacts; 73 protected BusinessServices businessServices; 74 protected IdentifierBag identifierBag; 75 protected CategoryBag categoryBag; 76 @XmlAttribute(name = "businessKey", required = true) 77 protected String businessKey; 78 @XmlAttribute(name = "operator") 79 protected String operator; 80 @XmlAttribute(name = "authorizedName") 81 protected String authorizedName; 82 83 /** 84 * Gets the value of the discoveryURLs property. 85 * 86 * @return 87 * possible object is 88 * {@link DiscoveryURLs } 89 * 90 */ 91 public DiscoveryURLs getDiscoveryURLs() { 92 return discoveryURLs; 93 } 94 95 /** 96 * Sets the value of the discoveryURLs property. 97 * 98 * @param value 99 * allowed object is 100 * {@link DiscoveryURLs } 101 * 102 */ 103 public void setDiscoveryURLs(DiscoveryURLs value) { 104 this.discoveryURLs = value; 105 } 106 107 /** 108 * Gets the value of the name property. 109 * 110 * <p> 111 * This accessor method returns a reference to the live list, 112 * not a snapshot. Therefore any modification you make to the 113 * returned list will be present inside the JAXB object. 114 * This is why there is not a <CODE>set</CODE> method for the name property. 115 * 116 * <p> 117 * For example, to add a new item, do as follows: 118 * <pre> 119 * getName().add(newItem); 120 * </pre> 121 * 122 * 123 * <p> 124 * Objects of the following type(s) are allowed in the list 125 * {@link Name } 126 * 127 * 128 */ 129 public List<Name> getName() { 130 if (name == null) { 131 name = new ArrayList<Name>(); 132 } 133 return this.name; 134 } 135 136 /** 137 * Gets the value of the description property. 138 * 139 * <p> 140 * This accessor method returns a reference to the live list, 141 * not a snapshot. Therefore any modification you make to the 142 * returned list will be present inside the JAXB object. 143 * This is why there is not a <CODE>set</CODE> method for the description property. 144 * 145 * <p> 146 * For example, to add a new item, do as follows: 147 * <pre> 148 * getDescription().add(newItem); 149 * </pre> 150 * 151 * 152 * <p> 153 * Objects of the following type(s) are allowed in the list 154 * {@link Description } 155 * 156 * 157 */ 158 public List<Description> getDescription() { 159 if (description == null) { 160 description = new ArrayList<Description>(); 161 } 162 return this.description; 163 } 164 165 /** 166 * Gets the value of the contacts property. 167 * 168 * @return 169 * possible object is 170 * {@link Contacts } 171 * 172 */ 173 public Contacts getContacts() { 174 return contacts; 175 } 176 177 /** 178 * Sets the value of the contacts property. 179 * 180 * @param value 181 * allowed object is 182 * {@link Contacts } 183 * 184 */ 185 public void setContacts(Contacts value) { 186 this.contacts = value; 187 } 188 189 /** 190 * Gets the value of the businessServices property. 191 * 192 * @return 193 * possible object is 194 * {@link BusinessServices } 195 * 196 */ 197 public BusinessServices getBusinessServices() { 198 return businessServices; 199 } 200 201 /** 202 * Sets the value of the businessServices property. 203 * 204 * @param value 205 * allowed object is 206 * {@link BusinessServices } 207 * 208 */ 209 public void setBusinessServices(BusinessServices value) { 210 this.businessServices = value; 211 } 212 213 /** 214 * Gets the value of the identifierBag property. 215 * 216 * @return 217 * possible object is 218 * {@link IdentifierBag } 219 * 220 */ 221 public IdentifierBag getIdentifierBag() { 222 return identifierBag; 223 } 224 225 /** 226 * Sets the value of the identifierBag property. 227 * 228 * @param value 229 * allowed object is 230 * {@link IdentifierBag } 231 * 232 */ 233 public void setIdentifierBag(IdentifierBag value) { 234 this.identifierBag = value; 235 } 236 237 /** 238 * Gets the value of the categoryBag property. 239 * 240 * @return 241 * possible object is 242 * {@link CategoryBag } 243 * 244 */ 245 public CategoryBag getCategoryBag() { 246 return categoryBag; 247 } 248 249 /** 250 * Sets the value of the categoryBag property. 251 * 252 * @param value 253 * allowed object is 254 * {@link CategoryBag } 255 * 256 */ 257 public void setCategoryBag(CategoryBag value) { 258 this.categoryBag = value; 259 } 260 261 /** 262 * Gets the value of the businessKey property. 263 * 264 * @return 265 * possible object is 266 * {@link String } 267 * 268 */ 269 public String getBusinessKey() { 270 return businessKey; 271 } 272 273 /** 274 * Sets the value of the businessKey property. 275 * 276 * @param value 277 * allowed object is 278 * {@link String } 279 * 280 */ 281 public void setBusinessKey(String value) { 282 this.businessKey = value; 283 } 284 285 /** 286 * Gets the value of the operator property. 287 * 288 * @return 289 * possible object is 290 * {@link String } 291 * 292 */ 293 public String getOperator() { 294 return operator; 295 } 296 297 /** 298 * Sets the value of the operator property. 299 * 300 * @param value 301 * allowed object is 302 * {@link String } 303 * 304 */ 305 public void setOperator(String value) { 306 this.operator = value; 307 } 308 309 /** 310 * Gets the value of the authorizedName property. 311 * 312 * @return 313 * possible object is 314 * {@link String } 315 * 316 */ 317 public String getAuthorizedName() { 318 return authorizedName; 319 } 320 321 /** 322 * Sets the value of the authorizedName property. 323 * 324 * @param value 325 * allowed object is 326 * {@link String } 327 * 328 */ 329 public void setAuthorizedName(String value) { 330 this.authorizedName = value; 331 } 332 333 }