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

com.github.redsolo.vcm.commands.AbstractVerifyModelCommand Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.github.redsolo.vcm.commands;

public abstract class AbstractVerifyModelCommand extends AbstractModelCollectionCommand {

	private boolean verificationFailed;

	@Override
	public int execute(MainConfiguration mainConfiguration) {
		int value = super.execute(mainConfiguration);
		return (value == 0 ? (hasVerificationFailed() ? 1 : 0) : value);
	}

	public boolean hasVerificationFailed() {
		return verificationFailed;
	}

	public void setVerificationFailed(boolean verificationFailed) {
		this.verificationFailed = verificationFailed;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy