X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjcoreee%2Fvalidator%2FBaseObjectValidator.java;h=6fc1583f6f4d3e578652a0e4e3ea703184f99574;hb=253a9c347a2f9710bdeb24f98392e37a7b17d946;hp=3bf63fe85199691762173aa3ffc5894dd289644d;hpb=27084cca343ee8463194b59de5b864858b0fa629;p=jcore-utils.git diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index 3bf63fe..6fc1583 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Haeder + * Copyright (C) 2016, 2017 Roland Häder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +30,7 @@ import javax.faces.validator.ValidatorException; * You also may want to try out some other BaseFooValidator classes before * directly inheriting from this class. *
- * @author Roland Haeder
- * @param context
- * @param component
- * @param value
- * @throws ValidatorException
- */
- @Override
- abstract public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException;
-
/**
* The method pre-validates the given value. It makes sure that the
* component's id is found in requiredFields and is not null. Once the
* component's id has been found, it stops iteration on requiredFields
* (which saves execution time).
*
- * @param context FacesContext instance
- * @param component UIComponent instance
- * @param value Value to check
+ * @param context FacesContext instance
+ * @param component UIComponent instance
+ * @param value Value to check
* @param requiredFields Array of required field names (ending with)
- * @param allowNull Wether null or empty values are allowed
+ * @param allowNull Wether null or empty values are allowed
*
* @throws ValidatorException If something more horrible went wrong
*/
- protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException {
+ protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, Boolean allowNull) throws ValidatorException {
// Trace message
//* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N