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

jaxx.runtime.validator.BeanValidatorScope Maven / Gradle / Ivy

/*
 * *##% 
 * JAXX Runtime
 * Copyright (C) 2008 - 2009 CodeLutin
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 *
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * .
 * ##%*
 */
package jaxx.runtime.validator;

import static org.nuiton.i18n.I18n.n_;

/**
 * The differents levels of messages in validation process.
 * 

* The order of the enum defines the severity of validation. *

* Always begin with error, then if no error found, try warning, then info... * * @author chemit */ public enum BeanValidatorScope { /** * the error scope level. * * When a message of a such scope is found on a validator, then the validator * is invalid and modified. */ ERROR(n_("validator.scope.error.label")), /** * the warning scope level. * * When a message of a such scope is found on a validator, then the validator * is still valid but modified. */ WARNING(n_("validator.scope.warning.label")), /** * the information scope level. * * When a message of a sucg scope is found on a validator, then the * validator is still valid and not modified. */ INFO(n_("validator.scope.info.label")); private final String label; private BeanValidatorScope(String label) { this.label = label; } public String getLabel() { return label; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy