Class RFCValidator


  • public class RFCValidator
    extends java.lang.Object
    Validates RFC (Registro Federal de Contribuyentes) for Mexico.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RFC_REGEX
      Regular expression to validate RFC (Registro Federal de Contribuyentes).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RFCValidator()
      Constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isValid​(java.lang.String value)
      Indicates whether provided RFC has a valid format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RFC_REGEX

        public static final java.lang.String RFC_REGEX
        Regular expression to validate RFC (Registro Federal de Contribuyentes).
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFCValidator

        protected RFCValidator()
        Constructor.
    • Method Detail

      • isValid

        public static boolean isValid​(java.lang.String value)
        Indicates whether provided RFC has a valid format.
        Parameters:
        value - RFC to be validated.
        Returns:
        true if RFC has a valid format, false otherwise.