org.apache.myfaces.custom.creditcardvalidator
Class AbstractCreditCardValidator

java.lang.Object
  extended by org.apache.myfaces.validator.ValidatorBase
      extended by org.apache.myfaces.custom.creditcardvalidator.AbstractCreditCardValidator
All Implemented Interfaces:
EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator

Deprecated. use myfaces commons mcv:validateCreditCard instead

public abstract class AbstractCreditCardValidator
extends ValidatorBase

A custom validator for creditCards, based upon Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
mwessendorf (latest modification by $Author: lu4242 $)

Field Summary
static String CREDITCARD_MESSAGE_ID
          Deprecated. The message identifier of the FacesMessage to be created if the creditcard check fails.
static String VALIDATOR_ID
          Deprecated. The standard converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
AbstractCreditCardValidator()
          Deprecated.  
 
Method Summary
abstract  boolean isAmex()
          Deprecated. american express cards
abstract  boolean isDiscover()
          Deprecated. validation for discover
abstract  boolean isMastercard()
          Deprecated. validation for mastercard
abstract  boolean isNone()
          Deprecated. none of the given cardtypes is allowed.
abstract  boolean isVisa()
          Deprecated. validation for visa
abstract  void setAmex(boolean b)
          Deprecated.  
abstract  void setDiscover(boolean b)
          Deprecated.  
abstract  void setMastercard(boolean b)
          Deprecated.  
abstract  void setNone(boolean b)
          Deprecated.  
abstract  void setVisa(boolean b)
          Deprecated.  
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object value)
          Deprecated.  
 
Methods inherited from class org.apache.myfaces.validator.ValidatorBase
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getSummaryMessage, getValueBinding, isTransient, restoreAttachedState, restoreState, saveAttachedState, saveState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final String VALIDATOR_ID
Deprecated. 

The standard converter id for this converter.

See Also:
Constant Field Values

CREDITCARD_MESSAGE_ID

public static final String CREDITCARD_MESSAGE_ID
Deprecated. 

The message identifier of the FacesMessage to be created if the creditcard check fails.

See Also:
Constant Field Values
Constructor Detail

AbstractCreditCardValidator

public AbstractCreditCardValidator()
Deprecated. 
Method Detail

validate

public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     Object value)
              throws javax.faces.validator.ValidatorException
Deprecated. 
Throws:
javax.faces.validator.ValidatorException

isAmex

public abstract boolean isAmex()
Deprecated. 
american express cards


isDiscover

public abstract boolean isDiscover()
Deprecated. 
validation for discover


isMastercard

public abstract boolean isMastercard()
Deprecated. 
validation for mastercard


isNone

public abstract boolean isNone()
Deprecated. 
none of the given cardtypes is allowed.


isVisa

public abstract boolean isVisa()
Deprecated. 
validation for visa


setAmex

public abstract void setAmex(boolean b)
Deprecated. 

setDiscover

public abstract void setDiscover(boolean b)
Deprecated. 

setMastercard

public abstract void setMastercard(boolean b)
Deprecated. 

setNone

public abstract void setNone(boolean b)
Deprecated. 

setVisa

public abstract void setVisa(boolean b)
Deprecated. 


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.