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.business.BusinessEntity; 22 import org.apache.juddi.datatype.service.BusinessService; 23 import org.apache.juddi.datatype.tmodel.TModel; 24 25 56 public class ValidateValues implements RegistryObject,Inquiry 57 { 58 String generic; 59 Vector businessVector; 60 Vector serviceVector; 61 Vector tModelVector; 62 63 66 public ValidateValues() 67 { 68 } 69 70 74 public void setGeneric(String genericValue) 75 { 76 this.generic = genericValue; 77 } 78 79 83 public String getGeneric() 84 { 85 return this.generic; 86 } 87 88 91 public void addBusinessEntity(BusinessEntity business) 92 { 93 if (business == null) 94 return; 95 96 if (this.businessVector == null) 97 this.businessVector = new Vector (); 98 this.businessVector.add(business); 99 } 100 101 104 public void setBusinessEntityVector(Vector businesses) 105 { 106 this.businessVector = businesses; 107 } 108 109 112 public Vector getBusinessEntityVector() 113 { 114 return this.businessVector; 115 } 116 117 120 public void addBusinessService(BusinessService service) 121 { 122 if (service == null) 123 return; 124 125 if (this.serviceVector == null) 126 this.serviceVector = new Vector (); 127 this.serviceVector.add(service); 128 } 129 130 133 public void setBusinessServiceVector(Vector services) 134 { 135 this.serviceVector = services; 136 } 137 138 141 public Vector getBusinessServiceVector() 142 { 143 return this.serviceVector; 144 } 145 146 149 public void addTModel(TModel tModel) 150 { 151 if (tModel == null) 152 return; 153 154 if (this.tModelVector == null) 155 this.tModelVector = new Vector (); 156 this.tModelVector.add(tModel); 157 } 158 159 162 public void setTModelVector(Vector tModels) 163 { 164 this.tModelVector = tModels; 165 } 166 167 170 public Vector getTModelVector() 171 { 172 return this.tModelVector; 173 } 174 } | Popular Tags |