1/*2 * Copyright 2014 The Apache Software Foundation.3 *4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 *8 * http://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617package org.apache.juddi.validation.vsv;
1819import java.util.List;
20import org.apache.juddi.api.impl.UDDIValueSetCachingImpl;
21import org.apache.juddi.api.impl.UDDIValueSetValidationImpl;
22import org.uddi.api_v3.BindingTemplate;
23import org.uddi.api_v3.BusinessEntity;
24import org.uddi.api_v3.BusinessService;
25import org.uddi.api_v3.PublisherAssertion;
26import org.uddi.api_v3.TModel;
27import org.uddi.api_v3.TModelInstanceInfo;
28import org.uddi.v3_service.DispositionReportFaultMessage;
2930/**31 * This is the value set validator interface. It enables you to define your own validation rules for tModel Keyed References.32 * To use this, define a tModel containing the following 33 * <pre><categoryBag>34 * <keyedReference keyName=""35 * keyValue="uddi:juddi.apache.org:servicebindings-valueset-cp"36 * tModelKey="uddi:uddi.org:identifier:validatedby"/>37 * </categoryBag>38 * </pre>Where uddi:juddi.apache.org:servicebindings-valueset-cp39 * is the binding key of the service implementing the VSV API (this service).40 * <Br><BR>41 * From there, you need to create a class that either implements42 * {@link ValueSetValidator} or extends {@link AbstractSimpleValidator}. It must43 * be in the package named org.apache.juddi.validation.vsv and must by named44 * following the convention outlined in {@link #ConvertKeyToClass(java.lang.String)45 * @author Alex O'Ree46 * @since 3.2.147 * @see AbstractSimpleValidator48 * @see UDDIValueSetValidationImpl49 * @see UDDIValueSetCachingImpl50 */51publicinterfaceValueSetValidator {
5253publicvoid validateTmodelInstanceDetails(List<TModelInstanceInfo> tModelInstanceInfo, String xpath) throws DispositionReportFaultMessage;
5455publicvoid validateValuesBindingTemplate(List<BindingTemplate> items, String xpath) throws DispositionReportFaultMessage;
5657publicvoid validateValuesBusinessEntity(List<BusinessEntity> items) throws DispositionReportFaultMessage;
5859publicvoid validateValuesBusinessService(List<BusinessService> items, String xpath) throws DispositionReportFaultMessage;
6061publicvoid validateValuesPublisherAssertion(List<PublisherAssertion> items) throws DispositionReportFaultMessage;
6263publicvoid validateValuesTModel(List<TModel> items) throws DispositionReportFaultMessage;
6465public List<String> getValidValues();
66 }