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

org.hibernate.validator.cfg.defs.Mod11CheckDef Maven / Gradle / Ivy

Go to download

JSR 380's RI, Hibernate Validator version ${hibernate-validator.version} and its dependencies repackaged as OSGi bundle

There is a newer version: 5.1.0
Show newest version
/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */

package org.hibernate.validator.cfg.defs;

import org.hibernate.validator.cfg.ConstraintDef;
import org.hibernate.validator.constraints.Mod11Check;

/**
 * @author Hardy Ferentschik
 */
public class Mod11CheckDef extends ConstraintDef {

	public Mod11CheckDef() {
		super( Mod11Check.class );
	}

	public Mod11CheckDef threshold(int threshold) {
		addParameter( "threshold", threshold );
		return this;
	}

	public Mod11CheckDef startIndex(int startIndex) {
		addParameter( "startIndex", startIndex );
		return this;
	}

	public Mod11CheckDef endIndex(int endIndex) {
		addParameter( "endIndex", endIndex );
		return this;
	}

	public Mod11CheckDef checkDigitIndex(int checkDigitIndex) {
		addParameter( "checkDigitIndex", checkDigitIndex );
		return this;
	}

	public Mod11CheckDef ignoreNonDigitCharacters(boolean ignoreNonDigitCharacters) {
		addParameter( "ignoreNonDigitCharacters", ignoreNonDigitCharacters );
		return this;
	}

	public Mod11CheckDef treatCheck10As(char treatCheck10As) {
		addParameter( "treatCheck10As", treatCheck10As );
		return this;
	}

	public Mod11CheckDef treatCheck11As(char treatCheck11As) {
		addParameter( "treatCheck11As", treatCheck11As );
		return this;
	}

	public Mod11CheckDef processingDirection(Mod11Check.ProcessingDirection processingDirection) {
		addParameter( "processingDirection", processingDirection );
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy