1 16 package org.apache.juddi.datatype.binding; 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.KeyedReference; 23 import org.apache.juddi.datatype.RegistryObject; 24 25 39 public class BindingTemplate implements RegistryObject 40 { 41 String bindingKey; 43 44 String serviceKey; 47 48 Vector descVector; 51 52 AccessPoint accessPoint; 56 57 HostingRedirector hostingRedirector; 63 64 TModelInstanceDetails tModelInstanceDetails; 68 69 CategoryBag categoryBag; 75 76 79 public BindingTemplate() 80 { 81 } 82 83 88 public void setBindingKey(String key) 89 { 90 this.bindingKey = key; 91 } 92 93 97 public String getBindingKey() 98 { 99 return this.bindingKey; 100 } 101 102 107 public void setServiceKey(String key) 108 { 109 this.serviceKey = key; 110 } 111 112 119 public String getServiceKey() 120 { 121 return this.serviceKey; 122 } 123 124 130 public void addDescription(Description desc) 131 { 132 if (this.descVector == null) 133 this.descVector = new Vector (); 134 this.descVector.add(desc); 135 } 136 137 143 public void setDescriptionVector(Vector descs) 144 { 145 this.descVector = descs; 146 } 147 148 154 public Vector getDescriptionVector() 155 { 156 return this.descVector; 157 } 158 159 166 public void setAccessPoint(AccessPoint point) 167 { 168 this.accessPoint = point; 169 } 170 171 177 public AccessPoint getAccessPoint() 178 { 179 return this.accessPoint; 180 } 181 182 189 public void setHostingRedirector(HostingRedirector director) 190 { 191 this.hostingRedirector = director; 192 } 193 194 200 public HostingRedirector getHostingRedirector() 201 { 202 return this.hostingRedirector; 203 } 204 205 206 212 public TModelInstanceDetails getTModelInstanceDetails() 213 { 214 return this.tModelInstanceDetails; 215 } 216 217 220 public void setTModelInstanceDetails(TModelInstanceDetails details) 221 { 222 this.tModelInstanceDetails = details; 223 } 224 225 229 public void addCategory(KeyedReference ref) 230 { 231 if (ref == null) 233 return; 234 235 if (this.categoryBag == null) 237 this.categoryBag = new CategoryBag(); 238 239 this.categoryBag.addKeyedReference(ref); 240 } 241 242 249 public CategoryBag getCategoryBag() 250 { 251 return this.categoryBag; 252 } 253 254 259 public void setCategoryBag(CategoryBag bag) 260 { 261 this.categoryBag = bag; 262 } 263 } | Popular Tags |