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.ServiceKey; 22 23 29 public class DeleteService implements RegistryObject,Publish 30 { 31 String generic; 32 AuthInfo authInfo; 33 Vector serviceKeyVector; 34 35 38 public DeleteService() 39 { 40 } 41 42 45 public DeleteService(AuthInfo authInfo,String serviceKey) 46 { 47 setAuthInfo(authInfo); 48 addServiceKey(serviceKey); 49 } 50 51 54 public DeleteService(AuthInfo authInfo,Vector serviceKeys) 55 { 56 setAuthInfo(authInfo); 57 setServiceKeyVector(serviceKeys); 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 addServiceKey(ServiceKey serviceKey) 82 { 83 if ((serviceKey != null) && (serviceKey.getValue() != null)) 84 addServiceKey(serviceKey.getValue()); 85 } 86 87 90 public void addServiceKey(String serviceKey) 91 { 92 if (this.serviceKeyVector == null) 93 this.serviceKeyVector = new Vector (); 94 this.serviceKeyVector.add(serviceKey); 95 } 96 97 100 public void setServiceKeyVector(Vector serviceKeys) 101 { 102 this.serviceKeyVector = serviceKeys; 103 } 104 105 108 public Vector getServiceKeyVector() 109 { 110 return this.serviceKeyVector; 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 |