org.mentawai.rule
Class CNPJRule

java.lang.Object
  extended by org.mentawai.rule.BasicRule
      extended by org.mentawai.rule.CNPJRule
All Implemented Interfaces:
Rule

public class CNPJRule
extends BasicRule

A rule to validate a CNPJ.

Author:
Robert Anderson N. de Oliveira

Constructor Summary
CNPJRule()
           
 
Method Summary
 boolean check(String value)
          Check a single input value from this action.
static CNPJRule 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

CNPJRule

public CNPJRule()
Method Detail

getInstance

public static CNPJRule 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.