org.mentawai.rule
Class CPFRule

java.lang.Object
  extended by org.mentawai.rule.BasicRule
      extended by 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

Constructor Summary
CPFRule()
           
 
Method Summary
 boolean check(String value)
          Check a single input value from this action.
static CPFRule getInstance()
           
 
Methods inherited from class org.mentawai.rule.BasicRule
check, getTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPFRule

public CPFRule()
Method Detail

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 © 2013. All Rights Reserved.