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.publisher.Publisher; 22 23 28 public class SavePublisher implements RegistryObject,Admin 29 { 30 String generic; 31 AuthInfo authInfo; 32 Vector publisherVector; 33 34 37 public SavePublisher() 38 { 39 } 40 41 44 public SavePublisher(AuthInfo info,Publisher publisher) 45 { 46 this.authInfo = info; 47 addPublisher(publisher); 48 } 49 50 53 public SavePublisher(AuthInfo info,Vector publishers) 54 { 55 this.authInfo = info; 56 this.publisherVector = publishers; 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 setAuthInfo(AuthInfo info) 81 { 82 this.authInfo = info; 83 } 84 85 88 public AuthInfo getAuthInfo() 89 { 90 return this.authInfo; 91 } 92 93 96 public void addPublisher(Publisher publisher) 97 { 98 if (this.publisherVector == null) 99 this.publisherVector = new Vector (); 100 this.publisherVector.add(publisher); 101 } 102 103 106 public void setPublisherVector(Vector publishers) 107 { 108 this.publisherVector = publishers; 109 } 110 111 114 public Vector getPublisherVector() 115 { 116 return this.publisherVector; 117 } 118 } | Popular Tags |