com.helger.phive.ves.engine.load.IVESLoaderEdifact Maven / Gradle / Ivy
/*
* 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.api.source.IValidationSourceBinary;
import com.helger.phive.ves.v10.VesEdifactType;
/**
* This interface is used by {@link VESLoader} create an
* {@link IValidationExecutor} from the VES Edifact requirements.
*
* @author Philip Helger
*/
public interface IVESLoaderEdifact
{
/**
* Load an Edifact validation from a VES.
*
* @param aRepo
* The repository to load the data from. May not be null
.
* @param aEDI
* The JAXB VES Edifact 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 loadEdifact (@Nonnull IRepoStorageBase aRepo,
@Nonnull VesEdifactType aEDI,
@Nullable LoadedVES.RequiredVES aLoadingRequiredVES,
@Nonnull ErrorList aErrorList,
@Nonnull IVESAsyncLoader aAsyncLoader);
}