Class ValidationUtils

java.lang.Object
io.sundr.builder.internal.utils.ValidationUtils

public final class ValidationUtils extends Object
Utilities for inspecting validation-related types using the sundrio model.
  • Method Details

    • getValidationConstructorParams

      public static List<io.sundr.model.Property> getValidationConstructorParams(String targetTypeFqn, io.sundr.adapter.apt.AptContext aptContext)
      Returns constructor parameters needed by enclosing classes of @Validation instance methods targeting the given type. Discovers candidate classes via naming conventions and package scanning, adapts them to the sundrio model, and inspects their methods and constructors.
      Parameters:
      targetTypeFqn - the fully qualified name of the validated type (e.g. "io.sundr.examples.Person")
      aptContext - provides access to the annotation processing environment and adapter layer
      Returns:
      sorted list of constructor parameters as Property objects, empty if none needed