All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.helger.phive.ves.engine.load.IVESLoaderXSD Maven / Gradle / Ivy

Go to download

phive - Philip Helger Integrative Validation Engine - VES - Validation Execution Set engine

The newest version!
/*
 * Copyright (C) 2023-2024 Philip Helger (www.helger.com)
 * philip[at]helger[dot]com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.helger.phive.ves.engine.load;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.helger.commons.error.list.ErrorList;
import com.helger.diver.repo.IRepoStorageBase;
import com.helger.phive.api.executor.IValidationExecutor;
import com.helger.phive.ves.v10.VesXsdType;
import com.helger.phive.xml.source.IValidationSourceXML;

/**
 * This interface is used by {@link VESLoader} create an
 * {@link IValidationExecutor} from the VES XSD requirements.
 *
 * @author Philip Helger
 */
public interface IVESLoaderXSD
{
  /**
   * Load an XSD validation from a VES.
   *
   * @param aRepo
   *        The repository to load the data from. May not be null.
   * @param aXSD
   *        The JAXB VES XSD object with the details. May not be
   *        null.
   * @param aLoadingRequiredVES
   *        In case the loading was recursively triggered via a "requires"
   *        (=include), this is the data of the requirements. May be
   *        null.
   * @param aErrorList
   *        The error list to be filled. May not be null.
   * @param aAsyncLoader
   *        The callback to be invoked, if loading this artefacts needs to
   *        trigger the loading of another artefact.
   * @return The validation executor to be used. May not be null.
   */
  @Nonnull
  IValidationExecutor  loadXSD (@Nonnull IRepoStorageBase aRepo,
                                                      @Nonnull VesXsdType aXSD,
                                                      @Nullable LoadedVES.RequiredVES aLoadingRequiredVES,
                                                      @Nonnull ErrorList aErrorList,
                                                      @Nonnull IVESAsyncLoader aAsyncLoader);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy