|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.validation.validator.AbstractValidator org.apache.wicket.validation.validator.CreditCardValidator
public class CreditCardValidator
Performs the so-called "mod 10" algorithm to check the validity of credit card numbers such as VISA.
In addition to this, the credit card number can be further validated by its length and prefix, but those properties depend upon the credit card type, and such validation is not performed by this validator.
Constructor Summary | |
---|---|
CreditCardValidator()
|
Method Summary | |
---|---|
protected void |
onValidate(IValidatable validatable)
Validates the IValidatable instance. |
Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator |
---|
error, error, error, error, messageModel, resourceKey, resourceKey, validate, validate, validateOnNullValue, variablesMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreditCardValidator()
Method Detail |
---|
protected void onValidate(IValidatable validatable)
AbstractValidator
IValidatable
instance.
onValidate
in class AbstractValidator
validatable
- the given IValidatable
instanceAbstractValidator.onValidate(IValidatable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |