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

org.onetwo.common.commandline.AbstractInputValidator Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.commandline;

import org.onetwo.common.utils.StringUtils;

abstract public class AbstractInputValidator implements InputValidator {

	protected CommandLineException newError(String msg){
		return new CommandLineException(msg);
	}
	@Override
	public void validate(String input) {
		if(StringUtils.isBlank(input))
			return ;
		doValidate(input);
	}
	
	abstract protected void doValidate(String input);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy