org.mentawai.rule
Class CPFRule
java.lang.Object
org.mentawai.rule.BasicRule
org.mentawai.rule.CPFRule
- All Implemented Interfaces:
- Rule
public class CPFRule
- extends BasicRule
A rule to validate a CPF.
- Author:
- Robert Anderson N. de Oliveira
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CPFRule
public CPFRule()
getInstance
public static CPFRule getInstance()
check
public boolean check(String value)
- Description copied from class:
BasicRule
- Check a single input value from this action.
Override this method to implement a basic rule for validation.
- Specified by:
check in class BasicRule
- Parameters:
value - The value to validate.
- Returns:
- true if the validation was successful.
Copyright © 2011. All Rights Reserved.