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 DeleteBinding implements RegistryObject,Publish 30 { 31 String generic; 32 AuthInfo authInfo; 33 Vector bindingKeyVector; 34 35 38 public DeleteBinding() 39 { 40 } 41 42 45 public DeleteBinding(AuthInfo authInfo,String bindingKey) 46 { 47 this.authInfo = authInfo; 48 addBindingKey(bindingKey); 49 } 50 51 54 public DeleteBinding(AuthInfo authInfo,Vector bindingKeys) 55 { 56 this.authInfo = authInfo; 57 setBindingKeyVector(bindingKeys); 58 } 59 60 64 public void setGeneric(String genericValue) 65 { 66 this.generic = genericValue; 67 } 68 69 73 public String getGeneric() 74 { 75 return this.generic; 76 } 77 78 81 public void addBindingKey(BindingKey bindingKey) 82 { 83 if ((bindingKey != null) && (bindingKey.getValue() != null)) 84 this.addBindingKey(bindingKey.getValue()); 85 } 86 87 90 public void addBindingKey(String bindingKey) 91 { 92 if (this.bindingKeyVector == null) 93 this.bindingKeyVector = new Vector (); 94 this.bindingKeyVector.add(bindingKey); 95 } 96 97 100 public void setBindingKeyVector(Vector bindingKeys) 101 { 102 this.bindingKeyVector = bindingKeys; 103 } 104 105 108 public Vector getBindingKeyVector() 109 { 110 return this.bindingKeyVector; 111 } 112 113 116 public void setAuthInfo(AuthInfo authInfo) 117 { 118 this.authInfo = authInfo; 119 } 120 121 124 public AuthInfo getAuthInfo() 125 { 126 return this.authInfo; 127 } 128 } | Popular Tags |