1 16 package org.apache.juddi.datatype.request; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.RegistryObject; 21 import org.apache.juddi.datatype.UploadRegister; 22 import org.apache.juddi.datatype.business.BusinessEntity; 23 24 32 public class SaveBusiness implements RegistryObject,Publish 33 { 34 String generic; 35 AuthInfo authInfo; 36 Vector businessVector; 37 Vector uploadRegisterVector; 38 39 42 public SaveBusiness() 43 { 44 } 45 46 49 public SaveBusiness(AuthInfo info, BusinessEntity business) 50 { 51 this.authInfo = info; 52 addBusinessEntity(business); 53 } 54 55 58 public SaveBusiness(AuthInfo info,Vector businesses) 59 { 60 this.authInfo = info; 61 this.businessVector = businesses; 62 } 63 64 68 public void setGeneric(String genericValue) 69 { 70 this.generic = genericValue; 71 } 72 73 77 public String getGeneric() 78 { 79 return this.generic; 80 } 81 82 85 public void addBusinessEntity(BusinessEntity businessEntity) 86 { 87 if (this.businessVector == null) 88 this.businessVector = new Vector (); 89 this.businessVector.add(businessEntity); 90 } 91 92 95 public void setBusinessEntityVector(Vector businesses) 96 { 97 this.businessVector = businesses; 98 } 99 100 103 public Vector getBusinessEntityVector() 104 { 105 return businessVector; 106 } 107 108 111 public void addUploadRegister(UploadRegister register) 112 { 113 if (this.uploadRegisterVector == null) 114 this.uploadRegisterVector = new Vector (); 115 this.uploadRegisterVector.add(register); 116 } 117 118 121 public void setUploadRegisterVector(Vector registers) 122 { 123 this.uploadRegisterVector = registers; 124 } 125 126 129 public Vector getUploadRegisterVector() 130 { 131 return this.uploadRegisterVector; 132 } 133 134 137 public void setAuthInfo(AuthInfo authInfo) 138 { 139 this.authInfo = authInfo; 140 } 141 142 145 public AuthInfo getAuthInfo() 146 { 147 return authInfo; 148 } 149 } 150 | Popular Tags |