1 16 package org.apache.juddi.datatype.service; 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.KeyedReference; 23 import org.apache.juddi.datatype.Name; 24 import org.apache.juddi.datatype.RegistryObject; 25 import org.apache.juddi.datatype.binding.BindingTemplate; 26 import org.apache.juddi.datatype.binding.BindingTemplates; 27 28 38 public class BusinessService implements RegistryObject 39 { 40 String businessKey; 41 String serviceKey; 42 Vector nameVector; 43 Vector descrVector; 44 BindingTemplates bindingTemplates; 45 CategoryBag categoryBag; 46 47 50 public BusinessService() 51 { 52 } 53 54 62 public void setBusinessKey(String key) 63 { 64 this.businessKey = key; 65 } 66 67 74 public String getBusinessKey() 75 { 76 return this.businessKey; 77 } 78 79 84 public void setServiceKey(String key) 85 { 86 serviceKey = key; 87 } 88 89 94 public String getServiceKey() 95 { 96 return serviceKey; 97 } 98 99 104 public void addName(Name name) 105 { 106 if (nameVector == null) 107 nameVector = new Vector (); 108 nameVector.add(name); 109 } 110 111 117 public void addDescription(Description desc) 118 { 119 if (descrVector == null) 120 descrVector = new Vector (); 121 descrVector.add(desc); 122 } 123 124 130 public Vector getNameVector() 131 { 132 return nameVector; 133 } 134 135 141 public void setNameVector(Vector names) 142 { 143 this.nameVector = names; 144 } 145 146 152 public void setDescriptionVector(Vector descs) 153 { 154 this.descrVector = descs; 155 } 156 157 162 public Vector getDescriptionVector() 163 { 164 return this.descrVector; 165 } 166 167 172 public void addBindingTemplate(BindingTemplate binding) 173 { 174 if (this.bindingTemplates == null) 175 this.bindingTemplates = new BindingTemplates(); 176 this.bindingTemplates.addBindingTemplate(binding); 177 } 178 179 184 public BindingTemplates getBindingTemplates() 185 { 186 return this.bindingTemplates; 187 } 188 189 192 public void setBindingTemplates(BindingTemplates bindings) 193 { 194 this.bindingTemplates = bindings; 195 } 196 197 201 public void addCategory(KeyedReference ref) 202 { 203 if (ref == null) 205 return; 206 207 if (this.categoryBag == null) 209 this.categoryBag = new CategoryBag(); 210 211 this.categoryBag.addKeyedReference(ref); 212 } 213 214 221 public CategoryBag getCategoryBag() 222 { 223 return this.categoryBag; 224 } 225 226 231 public void setCategoryBag(CategoryBag bag) 232 { 233 this.categoryBag = bag; 234 } 235 } | Popular Tags |