net.sf.mmm.util.validation.base.ValidatorBuilderNone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-util-validation Show documentation
Show all versions of mmm-util-validation Show documentation
This project provides advanced validation support.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.validation.base;
import net.sf.mmm.util.pojo.path.api.TypedProperty;
/**
* This is a fallback implementation of {@link ValidatorBuilder} that may be used if JSR 303 is not available (missing
* on classpath, configured wrongly, or the like).
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 3.1.0
*/
public class ValidatorBuilderNone extends AbstractValidatorBuilder {
/**
* The constructor.
*/
public ValidatorBuilderNone() {
super();
}
@Override
public AbstractValidator newValidator(Class pojoType) {
return ValidatorNone.getInstance();
}
@Override
public AbstractValidator> newValidator(Class> pojoType, String property, Class> propertyType) {
return ValidatorNone.getInstance();
}
@Override
public AbstractValidator newValidator(Class> pojoType, TypedProperty property,
Class propertyType) {
return ValidatorNone.getInstance();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy