1 16 package org.apache.juddi.datatype.response; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.Name; 21 import org.apache.juddi.datatype.RegistryObject; 22 23 26 public class ServiceInfo implements RegistryObject 27 { 28 String businessKey; 29 String serviceKey; 30 Vector nameVector; 31 32 35 public ServiceInfo() 36 { 37 } 38 39 42 public ServiceInfo(String bizKey,String servKey) 43 { 44 this.businessKey = bizKey; 45 this.serviceKey = servKey; 46 } 47 48 51 public void setServiceKey(String key) 52 { 53 this.serviceKey = key; 54 } 55 56 59 public String getServiceKey() 60 { 61 return serviceKey; 62 } 63 64 67 public void setBusinessKey(String key) 68 { 69 this.businessKey = key; 70 } 71 72 75 public String getBusinessKey() 76 { 77 return businessKey; 78 } 79 80 83 public void addName(Name name) 84 { 85 if (this.nameVector == null) 86 this.nameVector = new Vector (); 87 this.nameVector.add(name); 88 } 89 90 93 public void setNameVector(Vector names) 94 { 95 this.nameVector = names; 96 } 97 98 101 public Vector getNameVector() 102 { 103 return this.nameVector; 104 } 105 } 106 | Popular Tags |