Package io.sundr.builder.internal.utils
Class ValidationUtils
java.lang.Object
io.sundr.builder.internal.utils.ValidationUtils
Utilities for inspecting validation-related types using the sundrio model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
Propertyobjects, empty if none needed
-