Package io.goobi.viewer.faces.validators
Class EmailValidator
java.lang.Object
io.goobi.viewer.faces.validators.EmailValidator
- All Implemented Interfaces:
EventListener
,javax.faces.validator.Validator<String>
Syntax validator for e-mail addresses.
-
Field Summary
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) static boolean
validateEmailAddress
(String email) validateEmailAddress.
-
Constructor Details
-
EmailValidator
public EmailValidator()
-
-
Method Details
-
validate
public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException - Specified by:
validate
in interfacejavax.faces.validator.Validator<String>
- Throws:
javax.faces.validator.ValidatorException
-
validateEmailAddress
validateEmailAddress.
- Parameters:
email
- aString
object.- Returns:
- a boolean.
-