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 Type
    Method
    Description
    static @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 void
    validateOutgoingBusinessDocument(@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 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)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 ValidationExecutorSetRegistry initialized with the Peppol rules only.
      Since:
      0.10.1
      See Also:
      • PeppolValidation
    • 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 be null.
      aVESID - The DVRCoordinate to be used. Must be contained in the default registry. May not be null.
      aValidationResultHandler - The validation result handler to be used. May not be null.
      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 be null.
      aVESRegistry - The VES registry the VESID is looked up in.
      aVESID - The DVRCoordinate to be used. Must be contained in the provided registry. May not be null.
      aValidationResultHandler - The validation result handler to be used. May not be null.
      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