1 16 package org.apache.juddi.datatype.request; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.BindingKey; 21 import org.apache.juddi.datatype.RegistryObject; 22 23 29 public class GetBindingDetail implements RegistryObject,Inquiry 30 { 31 String generic; 32 Vector bindingKeyVector; 33 34 37 public GetBindingDetail() 38 { 39 } 40 41 45 public void setGeneric(String genericValue) 46 { 47 this.generic = genericValue; 48 } 49 50 54 public String getGeneric() 55 { 56 return this.generic; 57 } 58 59 65 public void addBindingKey(BindingKey key) 66 { 67 if ((key != null) && (key.getValue() != null)) 68 addBindingKey(key.getValue()); 69 } 70 71 76 public void addBindingKey(String key) 77 { 78 if (bindingKeyVector == null) 79 bindingKeyVector = new Vector (); 80 bindingKeyVector.add(key); 81 } 82 83 89 public void setBindingKeyVector(Vector keys) 90 { 91 this.bindingKeyVector = keys; 92 } 93 94 97 public Vector getBindingKeyVector() 98 { 99 return this.bindingKeyVector; 100 } 101 102 105 public String toString() 106 { 107 StringBuffer buffer = new StringBuffer (); 108 109 if (this.bindingKeyVector != null) 110 for (int i=0; i<this.bindingKeyVector.size(); i++) 111 buffer.append(this.bindingKeyVector.elementAt(i)); 112 113 return buffer.toString(); 114 } 115 } | Popular Tags |