Class AttributeValidator

java.lang.Object
com.onec.validation.AttributeValidator

public final class AttributeValidator extends Object
Enforces the declarative @Attribute constraints (required, string length, numeric min/max, regex pattern, email) on an entity before write, collecting every failure into a ValidationErrors keyed by field name. Works either against a typed aggregate (values read reflectively) or against a submitted body map (the generic UI write path), so the same rules apply however the write arrives.