org.books.view
Class CardNumberValidator

java.lang.Object
  extended by org.books.view.CardNumberValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.validator.Validator

public class CardNumberValidator
extends java.lang.Object
implements javax.faces.validator.Validator

CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Web-Tier (JSF)
Uebung: 9 (Validator)
Beschreibung:
Diese Klasse validiert die Nummer der Kreditkarte und wirft bei Ungueltigkeit, eine Fehlermeldung.

Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.

Version:
1.0 - 04.05.2007
Author:
Marc Bouquet ( marc at bouquet dot ch, Switzerland )
See Also:
@link{javax.faces.validator.Validator}

Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
CardNumberValidator()
           
 
Method Summary
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
          Validiert das Format einer Kreditkarten Nummer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardNumberValidator

public CardNumberValidator()
Method Detail

validate

public void validate(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
Validiert das Format einer Kreditkarten Nummer.
Validates the format of a credit card number.

Specified by:
validate in interface javax.faces.validator.Validator
Parameters:
context - FacesContext FacesContext the faces context
component - UIComponent UIComponent the component
value - Object
Throws:
javax.faces.validator.ValidatorException - Validierungsfehler


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.