1 16 package org.apache.juddi.datatype.response; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.Description; 21 import org.apache.juddi.datatype.Name; 22 import org.apache.juddi.datatype.RegistryObject; 23 24 32 public class BusinessInfo implements RegistryObject 33 { 34 String businessKey; 35 Vector nameVector; 36 Vector descVector; 37 ServiceInfos infos; 38 39 42 public BusinessInfo() 43 { 44 } 45 46 49 public BusinessInfo(BusinessInfo bizInfo) 50 { 51 businessKey = bizInfo.getBusinessKey(); 52 nameVector = bizInfo.getNameVector(); 53 descVector = bizInfo.getDescriptionVector(); 54 infos = bizInfo.getServiceInfos(); 55 } 56 57 60 public BusinessInfo(String key) 61 { 62 this.businessKey = key; 63 } 64 65 68 public void setBusinessKey(String key) 69 { 70 this.businessKey = key; 71 } 72 73 76 public String getBusinessKey() 77 { 78 return this.businessKey; 79 } 80 81 84 public void addName(Name name) 85 { 86 if (this.nameVector == null) 87 this.nameVector = new Vector (); 88 this.nameVector.add(name); 89 } 90 91 94 public void setNameVector(Vector names) 95 { 96 this.nameVector = names; 97 } 98 99 102 public Vector getNameVector() 103 { 104 return this.nameVector; 105 } 106 107 110 public void addDescription(Description desc) 111 { 112 if (this.descVector == null) 113 this.descVector = new Vector (); 114 this.descVector.add(desc); 115 } 116 117 120 public void setDescriptionVector(Vector descriptions) 121 { 122 this.descVector = descriptions; 123 } 124 125 128 public Vector getDescriptionVector() 129 { 130 return this.descVector; 131 } 132 133 136 public void addServiceInfo(ServiceInfo info) 137 { 138 if (this.infos == null) 139 this.infos = new ServiceInfos(); 140 this.infos.addServiceInfo(info); 141 } 142 143 146 public void setServiceInfos(ServiceInfos infos) 147 { 148 this.infos = infos; 149 } 150 151 154 public ServiceInfos getServiceInfos() 155 { 156 return this.infos; 157 } 158 } | Popular Tags |