Interface ValidationHook

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ValidationHook
    • Method Summary

      Modifier and Type Method Description
      java.util.List<java.lang.String> path​(java.util.List<java.lang.String> path)
      Alter the validation so that the path of you YAPIONAnyType can be deeper in the object.
    • Method Detail

      • path

        java.util.List<java.lang.String> path​(java.util.List<java.lang.String> path)
        Alter the validation so that the path of you YAPIONAnyType can be deeper in the object. This is useful for validating data in an YAPIONPacket as you don't want to generate a complete validator for the whole Object, just for the data.
        Parameters:
        path -
        Returns:
        the new path