1 16 package org.apache.juddi.datatype.request; 17 18 import org.apache.juddi.datatype.CategoryBag; 19 import org.apache.juddi.datatype.KeyedReference; 20 import org.apache.juddi.datatype.RegistryObject; 21 import org.apache.juddi.datatype.TModelBag; 22 23 29 public class FindBinding implements RegistryObject,Inquiry 30 { 31 String serviceKey; 32 String generic; 33 CategoryBag categoryBag; 34 TModelBag tModelBag; 35 FindQualifiers findQualifiers; 36 int maxRows; 37 38 41 public FindBinding() 42 { 43 } 44 45 46 53 public FindBinding(String serviceKey) 54 { 55 setServiceKey(serviceKey); 56 } 57 58 64 public void setServiceKey(String key) 65 { 66 serviceKey = key; 67 } 68 69 75 public String getServiceKey() 76 { 77 return serviceKey; 78 } 79 80 84 public void setGeneric(String genericValue) 85 { 86 this.generic = genericValue; 87 } 88 89 93 public String getGeneric() 94 { 95 return this.generic; 96 } 97 98 103 public void addCategory(KeyedReference ref) 104 { 105 if (ref == null) 107 return; 108 109 if (this.categoryBag == null) 111 this.categoryBag = new CategoryBag(); 112 113 this.categoryBag.addKeyedReference(ref); 114 } 115 116 121 public void setCategoryBag(CategoryBag bag) 122 { 123 categoryBag = bag; 124 } 125 126 131 public CategoryBag getCategoryBag() 132 { 133 return this.categoryBag; 134 } 135 136 142 public void addTModelKey(String key) 143 { 144 if (key == null) 146 return; 147 148 if (this.tModelBag == null) 150 this.tModelBag = new TModelBag(); 151 152 this.tModelBag.addTModelKey(key); 153 } 154 155 160 public void setTModelBag(TModelBag bag) 161 { 162 this.tModelBag = bag; 163 } 164 165 170 public TModelBag getTModelBag() 171 { 172 return tModelBag; 173 } 174 175 178 public int getMaxRows() 179 { 180 return maxRows; 181 } 182 183 186 public void setMaxRows(int maxRows) 187 { 188 this.maxRows = maxRows; 189 } 190 191 194 public void setMaxRows(String maxRows) 195 { 196 setMaxRows(Integer.parseInt(maxRows)); 197 } 198 199 202 public void addFindQualifier(FindQualifier findQualifier) 203 { 204 if (this.findQualifiers == null) 205 this.findQualifiers = new FindQualifiers(); 206 this.findQualifiers.addFindQualifier(findQualifier); 207 } 208 209 212 public void setFindQualifiers(FindQualifiers findQualifiers) 213 { 214 this.findQualifiers = findQualifiers; 215 } 216 217 220 public FindQualifiers getFindQualifiers() 221 { 222 return this.findQualifiers; 223 } 224 } | Popular Tags |