public class ModuloElevenValidator extends AbstractValidator
Constructor and Description |
---|
ModuloElevenValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object value)
Validates that the supplied value represents a valid number that adheres to the Modulo-11 check.
|
getFormattedErrorMessage, getMessage, hasMessage, isComponentOfTypeUIInput, restoreState, saveState, setMessage
isTransient, setTransient
public void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object value)
UIInput
facesContext
- The FacesContext.component
- The component that needs to be validated.value
- The value that needs to be validated.NullPointerException
- When either the supplied facesContext or component is null.javax.faces.validator.ValidatorException
- When the supplied value does not represent a valid modulo-11 value.Copyright © 2008–2018. All rights reserved.