All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nz.co.senanque.validationengine.fieldvalidators.package.html Maven / Gradle / Ivy

Go to download

This is essentially a JAXB/XJC plugin that adds automatic validation to the generated Java classes. You define business objects in an XSD file, pass it through XJC and the plugin will add the validation code. It uses information in the XSD to pick up validation, and you can specify extensions to that in the XSD. The resulting Java classes check for validity when the setter is called and they reject attempts to set invalid values (this is a difference from other validation frameworks). The Java classes also expose a metadata interface to make it easy for UIs to generate, say, lists of options for a select box. The validation framework handles single field validation but you can inject a rule engine (or several) to handle cross field validation. But to any Java code the objects still look like ordinary Java beans. The surrounding application is unaware that they are anything different until they throw an exception. This makes it easy to use with frameworks that expect Java beans, and most of them do.

There is a newer version: 3.3.5
Show newest version






These classes actually do the validation on various fields. All of them support being passed the validation data using an annotation. This means the field being validated is annotated for this validation type and the information about the validation is specified on the annotation, so this needs to be passed to it.

Some of them get their validation information from a DTO. This is only used for testing, not production.

Package Specification





© 2015 - 2025 Weber Informatics LLC | Privacy Policy