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.tmodel.TModel; 23 24 29 public class SaveTModel implements RegistryObject,Publish 30 { 31 String generic; 32 AuthInfo authInfo; 33 Vector tModelVector; 34 Vector uploadRegisterVector; 35 36 39 public SaveTModel() 40 { 41 } 42 43 46 public SaveTModel(AuthInfo authInfo,TModel tModel) 47 { 48 setAuthInfo(authInfo); 49 addTModel(tModel); 50 } 51 52 55 public SaveTModel(AuthInfo authInfo,Vector tModels) 56 { 57 setAuthInfo(authInfo); 58 setTModelVector(tModels); 59 } 60 61 65 public void setGeneric(String genericValue) 66 { 67 this.generic = genericValue; 68 } 69 70 74 public String getGeneric() 75 { 76 return this.generic; 77 } 78 79 82 public void addTModel(TModel tModel) 83 { 84 if (this.tModelVector == null) 85 this.tModelVector = new Vector (); 86 this.tModelVector.add(tModel); 87 } 88 89 92 public void setTModelVector(Vector tModels) 93 { 94 this.tModelVector = tModels; 95 } 96 97 100 public Vector getTModelVector() 101 { 102 return this.tModelVector; 103 } 104 105 108 public void addUploadRegister(UploadRegister register) 109 { 110 if (this.uploadRegisterVector == null) 111 this.uploadRegisterVector = new Vector (); 112 this.uploadRegisterVector.add(register); 113 } 114 115 118 public void setUploadRegisterVector(Vector registers) 119 { 120 this.uploadRegisterVector = registers; 121 } 122 123 126 public Vector getUploadRegisterVector() 127 { 128 return this.uploadRegisterVector; 129 } 130 131 134 public void setAuthInfo(AuthInfo authInfo) 135 { 136 if (authInfo == null) 137 throw new NullPointerException ("The authentication info of a publish message cannot be null!"); 138 139 this.authInfo = authInfo; 140 } 141 142 145 public AuthInfo getAuthInfo() 146 { 147 return authInfo; 148 } 149 } 150 | Popular Tags |