Class CreditCardValidator

java.lang.Object
com.sun.faces.ext.validator.CreditCardValidator
All Implemented Interfaces:
Validator, Serializable, EventListener

public class CreditCardValidator
extends Object
implements Validator, Serializable
A Validator that checks against a Regular Expression (which is the pattern property). The pattern must resolve to a String that follows the java.util.regex standards.
Author:
driscoll
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • validate

      public void validate​(FacesContext context, UIComponent component, Object obj)
      Validate a String against a regular expression pattern... The full regex pattern must be matched in order to pass the validation.
      Specified by:
      validate in interface Validator
      Parameters:
      context - Context of this request
      component - The component wrapping this validator
      obj - A string which will be compared to the pattern property of this validator. Must be a string.