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.service.BusinessService; 22 23 29 public class SaveService implements RegistryObject,Publish 30 { 31 String generic; 32 AuthInfo authInfo; 33 Vector serviceVector; 34 35 38 public SaveService() 39 { 40 } 41 42 45 public SaveService(AuthInfo info, BusinessService service) 46 { 47 this.authInfo = info; 48 addBusinessService(service); 49 } 50 51 54 public SaveService(AuthInfo info,Vector services) 55 { 56 this.authInfo = info; 57 this.serviceVector = services; 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 setAuthInfo(AuthInfo info) 82 { 83 this.authInfo = info; 84 } 85 86 89 public AuthInfo getAuthInfo() 90 { 91 return this.authInfo; 92 } 93 94 97 public void addBusinessService(BusinessService businessService) 98 { 99 if (this.serviceVector == null) 100 this.serviceVector = new Vector (); 101 this.serviceVector.add(businessService); 102 } 103 104 107 public void setServiceVector(Vector services) 108 { 109 this.serviceVector = services; 110 } 111 112 115 public Vector getBusinessServiceVector() 116 { 117 return this.serviceVector; 118 } 119 } | Popular Tags |