Package com.helger.phase4.peppol
Class Phase4PeppolValidation
java.lang.Object
com.helger.phase4.peppol.Phase4PeppolValidation
@Deprecated(forRemoval=true,
since="4.4.3")
public final class Phase4PeppolValidation
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
This class contains the client side validation required for outgoing Peppol messages.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull com.helger.phive.api.executorset.ValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull com.helger.phive.api.executorset.IValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> Deprecated, for removal: This API element is subject to removal in a future version.static voidvalidateOutgoingBusinessDocument(@NonNull Element aXML, @NonNull com.helger.diver.api.coord.DVRCoordinate aVESID, @NonNull IPhase4PeppolValidationResultHandler aValidationResultHandler) Deprecated, for removal: This API element is subject to removal in a future version.static voidvalidateOutgoingBusinessDocument(@NonNull Element aXML, @NonNull com.helger.phive.api.executorset.IValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> aVESRegistry, @NonNull com.helger.diver.api.coord.DVRCoordinate aVESID, @NonNull IPhase4PeppolValidationResultHandler aValidationResultHandler) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getDefaultRegistry
@Deprecated(forRemoval=true, since="4.4.3") @ReturnsMutableObject public static @NonNull com.helger.phive.api.executorset.IValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> getDefaultRegistry()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Get the existing default VES registry. Handle with care.
- Since:
- 1.3.1
-
createDefaultRegistry
@Deprecated(forRemoval=true, since="4.4.3") @ReturnsMutableCopy public static @NonNull com.helger.phive.api.executorset.ValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> createDefaultRegistry()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- A new
ValidationExecutorSetRegistryinitialized with the Peppol rules only. - Since:
- 0.10.1
- See Also:
-
validateOutgoingBusinessDocument
@Deprecated(forRemoval=true, since="4.4.3") public static void validateOutgoingBusinessDocument(@NonNull Element aXML, @NonNull com.helger.diver.api.coord.DVRCoordinate aVESID, @NonNull IPhase4PeppolValidationResultHandler aValidationResultHandler) throws com.helger.phase4.util.Phase4Exception Deprecated, for removal: This API element is subject to removal in a future version.Validate the passed DOM element using the provided VESID using the default registry.- Parameters:
aXML- The XML element to be validated. May not benull.aVESID- TheDVRCoordinateto be used. Must be contained in the default registry. May not benull.aValidationResultHandler- The validation result handler to be used. May not benull.- Throws:
com.helger.phase4.util.Phase4Exception- In case e.g. the validation failed. This usually implies, that the document will NOT be send out.- See Also:
-
validateOutgoingBusinessDocument
@Deprecated(forRemoval=true, since="4.4.3") public static void validateOutgoingBusinessDocument(@NonNull Element aXML, @NonNull com.helger.phive.api.executorset.IValidationExecutorSetRegistry<com.helger.phive.xml.source.IValidationSourceXML> aVESRegistry, @NonNull com.helger.diver.api.coord.DVRCoordinate aVESID, @NonNull IPhase4PeppolValidationResultHandler aValidationResultHandler) throws com.helger.phase4.util.Phase4Exception Deprecated, for removal: This API element is subject to removal in a future version.Validate the passed DOM element using the provided VESID using the provided registry.- Parameters:
aXML- The XML element to be validated. May not benull.aVESRegistry- The VES registry the VESID is looked up in.aVESID- TheDVRCoordinateto be used. Must be contained in the provided registry. May not benull.aValidationResultHandler- The validation result handler to be used. May not benull.- Throws:
com.helger.phase4.util.Phase4Exception- In case e.g. the validation failed. This usually implies, that the document will NOT be send out.- Since:
- 0.10.1
-