Object PresentationDefinitionV2Validator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit validate(PresentationDefinitionV2 presentationDefinition) Validates a PresentationDefinitionV2.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • validate

         final Unit validate(PresentationDefinitionV2 presentationDefinition)

        Validates a PresentationDefinitionV2.

        This method performs several checks to ensure the integrity of the presentation definition model object:

        • Ensures that the presentation definition's ID is not empty.

        • Validates that the name, if present, is not empty.

        • Checks that the purpose, if provided, is not empty.

        • Verifies the uniqueness of all inputDescriptor IDs within the presentation.

        • Ensures that FieldV2 ids are unique across all input descriptors.

        • For each input descriptor, it validates the descriptor using InputDescriptorV2Validator.