1 16 package org.apache.juddi.datatype.business; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.CategoryBag; 21 import org.apache.juddi.datatype.Description; 22 import org.apache.juddi.datatype.DiscoveryURL; 23 import org.apache.juddi.datatype.DiscoveryURLs; 24 import org.apache.juddi.datatype.IdentifierBag; 25 import org.apache.juddi.datatype.KeyedReference; 26 import org.apache.juddi.datatype.Name; 27 import org.apache.juddi.datatype.RegistryObject; 28 import org.apache.juddi.datatype.service.BusinessService; 29 import org.apache.juddi.datatype.service.BusinessServices; 30 31 41 public class BusinessEntity implements RegistryObject 42 { 43 String businessKey; 44 String authorizedName; 45 String operator; 46 DiscoveryURLs discoveryURLs; 47 Vector nameVector; 48 Vector descVector; 49 Contacts contacts; 50 BusinessServices businessServices; 51 IdentifierBag identifierBag; 52 CategoryBag categoryBag; 53 54 57 public BusinessEntity() 58 { 59 } 60 61 65 public void setBusinessKey(String key) 66 { 67 this.businessKey = key; 68 } 69 70 74 public String getBusinessKey() 75 { 76 return this.businessKey; 77 } 78 79 83 public void setAuthorizedName(String name) 84 { 85 this.authorizedName = name; 86 } 87 88 93 public String getAuthorizedName() 94 { 95 return this.authorizedName; 96 } 97 98 102 public void setOperator(String operator) 103 { 104 this.operator = operator; 105 } 106 107 112 public String getOperator() 113 { 114 return this.operator; 115 } 116 117 127 public void addDiscoveryURL(DiscoveryURL url) 128 { 129 if (url == null) 131 return; 132 133 if (this.discoveryURLs == null) 135 this.discoveryURLs = new DiscoveryURLs(); 136 137 discoveryURLs.addDiscoveryURL(url); 138 } 139 140 144 public void setDiscoveryURLs(DiscoveryURLs urls) 145 { 146 this.discoveryURLs = urls; 147 } 148 149 155 public DiscoveryURLs getDiscoveryURLs() 156 { 157 return this.discoveryURLs; 158 } 159 160 165 public void addDescription(Description descr) 166 { 167 if (descr == null) 169 return; 170 171 if (this.descVector == null) 172 this.descVector = new Vector (); 173 this.descVector.add(descr); 174 } 175 176 182 public void setDescriptionVector(Vector descr) 183 { 184 this.descVector = descr; 185 } 186 187 193 public Vector getDescriptionVector() 194 { 195 return this.descVector; 196 } 197 198 203 public void addContact(Contact contact) 204 { 205 if (contact == null) 207 return; 208 209 if (this.contacts == null) 211 this.contacts = new Contacts(); 212 this.contacts.addContact(contact); 213 } 214 215 220 public void setContacts(Contacts contacts) 221 { 222 this.contacts = contacts; 223 } 224 225 231 public Contacts getContacts() 232 { 233 return this.contacts; 234 } 235 236 237 242 public void addName(Name name) 243 { 244 if (name == null) 246 return; 247 248 if (this.nameVector == null) 249 this.nameVector = new Vector (); 250 this.nameVector.add(name); 251 } 252 253 258 public void setNameVector(Vector names) 259 { 260 this.nameVector = names; 261 } 262 263 269 public Vector getNameVector() 270 { 271 return this.nameVector; 272 } 273 274 279 public void addBusinessService(BusinessService service) 280 { 281 if (service == null) 283 return; 284 285 if (this.businessServices == null) 287 this.businessServices = new BusinessServices(); 288 this.businessServices.addBusinessService(service); 289 } 290 291 295 public void setBusinessServices(BusinessServices services) 296 { 297 this.businessServices = services; 298 } 299 300 307 public BusinessServices getBusinessServices() 308 { 309 return this.businessServices; 310 } 311 312 316 public void addIdentifier(KeyedReference keyref) 317 { 318 if (keyref == null) 320 return; 321 322 if (this.identifierBag == null) 324 this.identifierBag = new IdentifierBag(); 325 326 this.identifierBag.addKeyedReference(keyref); 327 } 328 329 333 public void setIdentifierBag(IdentifierBag bag) 334 { 335 this.identifierBag = bag; 336 } 337 338 343 public IdentifierBag getIdentifierBag() 344 { 345 return this.identifierBag; 346 } 347 348 353 public void addCategory(KeyedReference keyref) 354 { 355 if (keyref == null) 357 return; 358 359 if (this.categoryBag == null) 361 this.categoryBag = new CategoryBag(); 362 363 this.categoryBag.addKeyedReference(keyref); 364 } 365 366 371 public void setCategoryBag(CategoryBag bag) 372 { 373 this.categoryBag = bag; 374 } 375 376 382 public CategoryBag getCategoryBag() 383 { 384 return this.categoryBag; 385 } 386 } | Popular Tags |