1 16 package org.apache.juddi.datatype.tmodel; 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.IdentifierBag; 23 import org.apache.juddi.datatype.KeyedReference; 24 import org.apache.juddi.datatype.Name; 25 import org.apache.juddi.datatype.OverviewDoc; 26 import org.apache.juddi.datatype.RegistryObject; 27 28 50 public class TModel implements RegistryObject 51 { 52 56 public static final String TYPES_TMODEL_KEY = "UUID:C1ACF26D-9672-4404-9D70-39B756E62AB4"; 57 58 63 public static final String NAICS_TMODEL_KEY = "UUID:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2"; 64 65 72 public static final String UNSPSC_TMODEL_KEY = "UUID:DB77450D-9FA8-45D4-A7BC-04411D14E384"; 73 74 79 public static final String UNSPSC_73_TMODEL_KEY = "UUID:CD153257-086A-4237-B336-6BDCBDCC6634"; 80 81 85 public static final String ISO_CH_TMODEL_KEY = "UUID:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88"; 86 87 91 public static final String GENERAL_KEYWORDS_TMODEL_KEY = "UUID:A035A07C-F362-44dd-8F95-E2B134BF43B4"; 92 93 99 public static final String OWNING_BUSINESS_TMODEL_KEY = "UUID:4064C064-6D14-4F35-8953-9652106476A9"; 100 101 106 public static final String RELATIONSHIPS_TMODEL_KEY = "UUID:807A2C6A-EE22-470D-ADC7-E0424A337C03"; 107 108 112 public static final String OPERATORS_TMODEL_KEY = "UUID:327A56F0-3299-4461-BC23-5CD513E95C55"; 113 114 118 public static final String D_U_N_S_TMODEL_KEY = "UUID:8609C81E-EE1F-4D5A-B202-3EB13AD01823"; 119 120 125 public static final String THOMAS_REGISTER_TMODEL_KEY = "UUID:B1B1BAF5-2329-43E6-AE13-BA8E97195039"; 126 127 133 public static final String IS_REPLACED_BY_TMODEL_KEY = "UUID:E59AE320-77A5-11D5-B898-0004AC49CC1E"; 134 135 141 public static final String SMTP_TMODEL_KEY = "UUID:93335D49-3EFB-48A0-ACEA-EA102B60DDC6"; 142 143 149 public static final String FAX_TMODEL_KEY = "UUID:1A2B00BE-6E2C-42F5-875B-56F32686E0E7"; 150 151 156 public static final String FTP_TMODEL_KEY = "UUID:5FCF5CD0-629A-4C50-8B16-F94E9CF2A674"; 157 158 163 public static final String TELEPHONE_TMODEL_KEY = "UUID:38E12427-5536-4260-A6F9-B5B530E63A07"; 164 165 170 public static final String HTTP_TMODEL_KEY = "UUID:68DE9E80-AD09-469D-8A37-088422BFBC36"; 171 172 177 public static final String HOMEPAGE_TMODEL_KEY = "UUID:4CEC1CEF-1F68-4B23-8CB7-8BAA763AEB89"; 178 179 String tModelKey; 180 String authorizedName; 181 String operator; 182 String nameValue; 183 Vector descVector; 184 OverviewDoc overviewDoc; 185 IdentifierBag identifierBag; 186 CategoryBag categoryBag; 187 188 191 public TModel() 192 { 193 } 194 195 202 public TModel(String name) 203 { 204 this.nameValue = name; 205 } 206 207 213 public TModel(String name,String key) 214 { 215 this.nameValue = name; 216 this.tModelKey = key; 217 } 218 219 224 public void setTModelKey(String key) 225 { 226 this.tModelKey = key; 227 } 228 229 235 public String getTModelKey() 236 { 237 return this.tModelKey; 238 } 239 240 245 public void setAuthorizedName(String name) 246 { 247 this.authorizedName = name; 248 } 249 250 256 public String getAuthorizedName() 257 { 258 return this.authorizedName; 259 } 260 261 266 public void setName(String name) 267 { 268 this.nameValue = name; 269 } 270 271 276 public String getName() 277 { 278 return this.nameValue; 279 } 280 281 286 public void setName(Name name) 287 { 288 if (name != null) 289 this.nameValue = name.getValue(); 290 else 291 this.nameValue = null; 292 } 293 294 299 public void addDescription(Description descr) 300 { 301 if (descr == null) 303 return; 304 305 if (this.descVector == null) 306 this.descVector = new Vector (); 307 this.descVector.add(descr); 308 } 309 310 316 public void setDescriptionVector(Vector descriptions) 317 { 318 this.descVector = descriptions; 319 } 320 321 327 public Vector getDescriptionVector() 328 { 329 return this.descVector; 330 } 331 332 338 public void setOverviewDoc(OverviewDoc doc) 339 { 340 this.overviewDoc = doc; 341 } 342 343 348 public OverviewDoc getOverviewDoc() 349 { 350 return this.overviewDoc; 351 } 352 353 358 public void setOperator(String operator) 359 { 360 this.operator = operator; 361 } 362 363 369 public String getOperator() 370 { 371 return this.operator; 372 } 373 374 379 public void addIdentifier(KeyedReference k) 380 { 381 if (this.identifierBag == null) 382 this.identifierBag = new IdentifierBag(); 383 this.identifierBag.addKeyedReference(k); 384 } 385 386 392 public IdentifierBag getIdentifierBag() 393 { 394 return this.identifierBag; 395 } 396 397 402 public void setIdentifierBag(IdentifierBag bag) 403 { 404 this.identifierBag = bag; 405 } 406 407 412 public void addCategory(KeyedReference keyedRef) 413 { 414 if (this.categoryBag == null) 415 this.categoryBag = new CategoryBag(); 416 this.categoryBag.addKeyedReference(keyedRef); 417 } 418 419 425 public CategoryBag getCategoryBag() 426 { 427 return this.categoryBag; 428 } 429 430 435 public void setCategoryBag(CategoryBag bag) 436 { 437 this.categoryBag = bag; 438 } 439 } | Popular Tags |