| Constructor and Description |
|---|
MzTabBeanValidator()
Default constructor.
|
MzTabBeanValidator(boolean failFast)
Constructor setting up the validator configuration and default constraint
mapping.
|
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation,T,V extends javax.validation.ConstraintValidator<A,T>> |
addConstraintAndValidator(Class<A> constraintDefinition,
Class<V> validator,
boolean includeExistingValidators)
Allows registration of custom constraint / validator pairs on the
validation configuration.
|
<A extends Annotation,T,V extends javax.validation.ConstraintValidator<A,T>> |
addConstraintAndValidator(Class<T> typeToValidate,
Class<A> constraintDefinition,
Class<V> validator,
boolean includeExistingValidators)
Allows registration of custom constraint / validator pairs on the
validation configuration for a specific (unannotated) type.
|
protected String |
getPathLocatorString(javax.validation.ConstraintViolation<?> cv)
getPathLocatorString.
|
List<ValidationMessage> |
validate(MzTab mzTab) |
public MzTabBeanValidator()
public MzTabBeanValidator(boolean failFast)
failFast - if true, first validation error will terminate any
further validation. If false, validation will continue and report all
validation errors.public <A extends Annotation,T,V extends javax.validation.ConstraintValidator<A,T>> void addConstraintAndValidator(Class<A> constraintDefinition, Class<V> validator, boolean includeExistingValidators)
A - The annotation marking elements that should be validated.T - The Object type on which the validation should be performed.V - The validator to use for the validation.constraintDefinition - The annotation marking elements that should
be validated.validator - The validator to use for the validation.includeExistingValidators - If true, existing validators for the
same type will be applied, too. If false, only the registered validator
will be retained for that type.public <A extends Annotation,T,V extends javax.validation.ConstraintValidator<A,T>> void addConstraintAndValidator(Class<T> typeToValidate, Class<A> constraintDefinition, Class<V> validator, boolean includeExistingValidators)
A - The annotation marking elements that should be validated.T - The Object type on which the validation should be performed.V - The validator to use for the validation.typeToValidate - The class/type that should be validated.constraintDefinition - The annotation marking elements that should
be validated.validator - The validator to use for the validation.includeExistingValidators - If true, existing validators for the
same type will be applied, too. If false, only the registered validator
will be retained for that type.public List<ValidationMessage> validate(MzTab mzTab)
Copyright © 2018 Leibniz-Institut für Analytische Wissenschaften – ISAS – e.V.. All rights reserved.