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.KeyedReference; 22 import org.apache.juddi.datatype.Name; 23 import org.apache.juddi.datatype.RegistryObject; 24 import org.apache.juddi.datatype.TModelBag; 25 26 34 public class FindService implements RegistryObject,Inquiry 35 { 36 String generic; 37 String businessKey; 38 Vector nameVector; 39 CategoryBag categoryBag; 40 TModelBag tModelBag; 41 FindQualifiers findQualifiers; 42 int maxRows; 43 44 47 public FindService() 48 { 49 } 50 51 58 public FindService(String businessKey) 59 { 60 setBusinessKey(businessKey); 61 } 62 63 70 public void setBusinessKey(String key) 71 { 72 businessKey = key; 73 } 74 75 81 public String getBusinessKey() 82 { 83 return businessKey; 84 } 85 86 90 public void setGeneric(String genericValue) 91 { 92 this.generic = genericValue; 93 } 94 95 99 public String getGeneric() 100 { 101 return this.generic; 102 } 103 104 111 public void addName(Name nameValue) 112 { 113 if (this.nameVector == null) 114 this.nameVector = new Vector (); 115 this.nameVector.add(nameValue); 116 } 117 118 124 public Vector getNameVector() 125 { 126 return this.nameVector; 127 } 128 129 136 public void setNameVector(Vector names) 137 { 138 this.nameVector = names; 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 categoryBag = bag; 167 } 168 169 174 public CategoryBag getCategoryBag() 175 { 176 return this.categoryBag; 177 } 178 179 186 public void addTModelKey(String key) 187 { 188 if (key == null) 190 return; 191 192 if (this.tModelBag == null) 194 this.tModelBag = new TModelBag(); 195 196 this.tModelBag.addTModelKey(key); 197 } 198 199 204 public void setTModelBag(TModelBag bag) 205 { 206 this.tModelBag = bag; 207 } 208 209 215 public TModelBag getTModelBag() 216 { 217 return this.tModelBag; 218 } 219 220 223 public int getMaxRows() 224 { 225 return maxRows; 226 } 227 228 231 public void setMaxRows(int maxRows) 232 { 233 this.maxRows = maxRows; 234 } 235 236 239 public void setMaxRows(String maxRows) 240 { 241 setMaxRows(Integer.parseInt(maxRows)); 242 } 243 244 247 public void addFindQualifier(FindQualifier findQualifier) 248 { 249 if (this.findQualifiers == null) 250 this.findQualifiers = new FindQualifiers(); 251 this.findQualifiers.addFindQualifier(findQualifier); 252 } 253 254 257 public void setFindQualifiers(FindQualifiers findQualifiers) 258 { 259 this.findQualifiers = findQualifiers; 260 } 261 262 265 public FindQualifiers getFindQualifiers() 266 { 267 return this.findQualifiers; 268 } 269 } | Popular Tags |