1 16 package org.apache.juddi.datatype.request; 17 18 import org.apache.juddi.datatype.CategoryBag; 19 import org.apache.juddi.datatype.IdentifierBag; 20 import org.apache.juddi.datatype.KeyedReference; 21 import org.apache.juddi.datatype.Name; 22 import org.apache.juddi.datatype.RegistryObject; 23 24 30 public class FindTModel implements RegistryObject,Inquiry 31 { 32 String generic; 33 Name name; 34 IdentifierBag identifierBag; 35 CategoryBag categoryBag; 36 FindQualifiers findQualifiers; 37 int maxRows; 38 39 42 public FindTModel() 43 { 44 } 45 46 50 public void setGeneric(String genericValue) 51 { 52 this.generic = genericValue; 53 } 54 55 59 public String getGeneric() 60 { 61 return this.generic; 62 } 63 64 71 public void setName(String newName) 72 { 73 setName(new Name(newName)); 74 } 75 76 83 public void setName(Name newname) 84 { 85 name = newname; 86 } 87 88 94 public Name getName() 95 { 96 return name; 97 } 98 99 105 public String getNameString() 106 { 107 if (this.name != null) 108 return this.name.getValue(); 109 else 110 return null; 111 } 112 113 118 public void addIdentifier(KeyedReference ref) 119 { 120 if (ref == null) 122 return; 123 124 if (this.identifierBag == null) 126 this.identifierBag = new IdentifierBag(); 127 128 this.identifierBag.addKeyedReference(ref); 129 } 130 131 136 public void setIdentifierBag(IdentifierBag bag) 137 { 138 this.identifierBag = bag; 139 } 140 141 147 public IdentifierBag getIdentifierBag() 148 { 149 return this.identifierBag; 150 } 151 152 157 public void addCategory(KeyedReference ref) 158 { 159 if (ref == null) 161 return; 162 163 if (this.categoryBag == null) 165 this.categoryBag = new CategoryBag(); 166 167 this.categoryBag.addKeyedReference(ref); 168 } 169 170 175 public void setCategoryBag(CategoryBag bag) 176 { 177 this.categoryBag = bag; 178 } 179 180 185 public CategoryBag getCategoryBag() 186 { 187 return categoryBag; 188 } 189 190 193 public int getMaxRows() 194 { 195 return maxRows; 196 } 197 198 201 public void setMaxRows(int maxRows) 202 { 203 this.maxRows = maxRows; 204 } 205 206 209 public void setMaxRows(String maxRows) 210 { 211 setMaxRows(Integer.parseInt(maxRows)); 212 } 213 214 217 public void addFindQualifier(FindQualifier findQualifier) 218 { 219 if (this.findQualifiers == null) 220 this.findQualifiers = new FindQualifiers(); 221 this.findQualifiers.addFindQualifier(findQualifier); 222 } 223 224 227 public void setFindQualifiers(FindQualifiers qualifiers) 228 { 229 this.findQualifiers = qualifiers; 230 } 231 232 235 public FindQualifiers getFindQualifiers() 236 { 237 return this.findQualifiers; 238 } 239 } | Popular Tags |