1 16 package org.apache.juddi.datatype.request; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.BusinessKey; 21 import org.apache.juddi.datatype.RegistryObject; 22 23 28 public class DeleteBusiness implements RegistryObject,Publish 29 { 30 String generic; 31 AuthInfo authInfo; 32 Vector businessKeyVector; 33 34 37 public DeleteBusiness() 38 { 39 } 40 41 44 public DeleteBusiness(AuthInfo authInfo, String businessKey) 45 { 46 this.authInfo = authInfo; 47 addBusinessKey(businessKey); 48 } 49 50 53 public DeleteBusiness(AuthInfo authInfo,Vector businessKeys) 54 { 55 this.authInfo = authInfo; 56 this.businessKeyVector = businessKeys; 57 } 58 59 63 public void setGeneric(String genericValue) 64 { 65 this.generic = genericValue; 66 } 67 68 72 public String getGeneric() 73 { 74 return this.generic; 75 } 76 77 80 public void addBusinessKey(BusinessKey businessKey) 81 { 82 if ((businessKey != null) && (businessKey.getValue() != null)) 83 this.addBusinessKey(businessKey.getValue()); 84 } 85 86 89 public void addBusinessKey(String businessKey) 90 { 91 if (this.businessKeyVector == null) 92 this.businessKeyVector = new Vector (); 93 this.businessKeyVector.add(businessKey); 94 } 95 96 99 public void setBusinessKeyVector(Vector businessKeys) 100 { 101 this.businessKeyVector = businessKeys; 102 } 103 104 107 public Vector getBusinessKeyVector() 108 { 109 return this.businessKeyVector; 110 } 111 112 115 public void setAuthInfo(AuthInfo authInfo) 116 { 117 this.authInfo = authInfo; 118 } 119 120 123 public AuthInfo getAuthInfo() 124 { 125 return this.authInfo; 126 } 127 } | Popular Tags |