1 16 package org.apache.juddi.datatype.request; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.CategoryBag; 21 import org.apache.juddi.datatype.DiscoveryURL; 22 import org.apache.juddi.datatype.DiscoveryURLs; 23 import org.apache.juddi.datatype.IdentifierBag; 24 import org.apache.juddi.datatype.KeyedReference; 25 import org.apache.juddi.datatype.Name; 26 import org.apache.juddi.datatype.RegistryObject; 27 import org.apache.juddi.datatype.TModelBag; 28 29 35 public class FindBusiness implements RegistryObject,Inquiry 36 { 37 String generic; 38 Vector nameVector; 39 IdentifierBag identifierBag; 40 CategoryBag categoryBag; 41 TModelBag tModelBag; 42 DiscoveryURLs discoveryURLs; 43 FindQualifiers findQualifiers; 44 int maxRows; 45 46 49 public FindBusiness() 50 { 51 } 52 53 57 public void setGeneric(String genericValue) 58 { 59 this.generic = genericValue; 60 } 61 62 66 public String getGeneric() 67 { 68 return this.generic; 69 } 70 71 78 public void addName(Name nameValue) 79 { 80 if (this.nameVector == null) 81 this.nameVector = new Vector (); 82 this.nameVector.add(nameValue); 83 } 84 85 92 public void setNameVector(Vector names) 93 { 94 this.nameVector = names; 95 } 96 97 104 public Vector getNameVector() 105 { 106 return nameVector; 107 } 108 109 114 public void addIdentifier(KeyedReference ref) 115 { 116 identifierBag.addKeyedReference(ref); 117 } 118 119 125 public void setIdentifierBag(IdentifierBag bag) 126 { 127 this.identifierBag = bag; 128 } 129 130 136 public IdentifierBag getIdentifierBag() 137 { 138 return identifierBag; 139 } 140 141 146 public void addCategory(KeyedReference ref) 147 { 148 if (ref == null) 150 return; 151 152 if (this.categoryBag == null) 154 this.categoryBag = new CategoryBag(); 155 156 this.categoryBag.addKeyedReference(ref); 157 } 158 159 164 public void setCategoryBag(CategoryBag bag) 165 { 166 this.categoryBag = bag; 167 } 168 169 175 public CategoryBag getCategoryBag() 176 { 177 return this.categoryBag; 178 } 179 180 187 public void addTModelKey(String key) 188 { 189 if (key == null) 191 return; 192 193 if (this.tModelBag == null) 195 this.tModelBag = new TModelBag(); 196 197 this.tModelBag.addTModelKey(key); 198 } 199 200 206 public TModelBag getTModelBag() 207 { 208 return this.tModelBag; 209 } 210 211 216 public void setTModelBag(TModelBag bag) 217 { 218 this.tModelBag = bag; 219 } 220 221 226 public void addDiscoveryURL(DiscoveryURL url) 227 { 228 if (url == null) 230 return; 231 232 if (this.discoveryURLs == null) 234 this.discoveryURLs = new DiscoveryURLs(); 235 236 this.discoveryURLs.addDiscoveryURL(url); 237 } 238 239 244 public void setDiscoveryURLs(DiscoveryURLs urls) 245 { 246 this.discoveryURLs = urls; 247 } 248 249 255 public DiscoveryURLs getDiscoveryURLs() 256 { 257 return discoveryURLs; 258 } 259 260 263 public int getMaxRows() 264 { 265 return maxRows; 266 } 267 268 271 public void setMaxRows(int maxRows) 272 { 273 this.maxRows = maxRows; 274 } 275 276 279 public void setMaxRows(String maxRows) 280 { 281 setMaxRows(Integer.parseInt(maxRows)); 282 } 283 284 287 public void addFindQualifier(FindQualifier findQualifier) 288 { 289 if (this.findQualifiers == null) 290 this.findQualifiers = new FindQualifiers(); 291 this.findQualifiers.addFindQualifier(findQualifier); 292 } 293 294 297 public void setFindQualifiers(FindQualifiers findQualifiers) 298 { 299 this.findQualifiers = findQualifiers; 300 } 301 302 305 public FindQualifiers getFindQualifiers() 306 { 307 return findQualifiers; 308 } 309 } | Popular Tags |