this.bundle = ResourceBundle.getBundle("org/mxchange/localization/bundle");
}
+ /**
+ * Getter for bundle instance
+ *
+ * @return Bundle instance
+ */
+ protected ResourceBundle getBundle () {
+ return this.bundle;
+ }
+
/**
* Getter for message from given key
*
// Return message
return this.getBundle().getString(key);
}
-
- /**
- * Getter for bundle instance
- *
- * @return Bundle instance
- */
- protected ResourceBundle getBundle () {
- return this.bundle;
- }
}
// Debug message
//this.getLogger().logDebug(MessageFormat.format("preValidate: isValidField={0}", isValidField)); //NOI18N
+
// Valid field?
if (!isValidField) {
// Invalid field
// Debug message
//this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N
+
// Is it not null?
if (null != facesMessage) {
throw new ValidatorException(facesMessage);
* @author Roland Haeder<roland@mxchange.org>
*/
public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implements Validator {
+
/**
* Serial number
*/
* @author Roland Haeder<roland@mxchange.org>
*/
public abstract class BaseStringValidator extends BaseObjectValidator {
+
/**
* Serial number
*/
// Debug message
//this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N
+
// Is it not null?
if (null != facesMessage) {
throw new ValidatorException(facesMessage);