Package 

Class METValidator


  • 
    public abstract class METValidator
    
                        

    Base Validator class to either implement or inherit from for custom validation

    • Method Summary

      Modifier and Type Method Description
      String getErrorMessage()
      void setErrorMessage(@NonNull() String errorMessage)
      abstract boolean isValid(@NonNull() CharSequence text, boolean isEmpty) Abstract method to implement your own validation checking.
      • Methods inherited from class java.lang.Object

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

      • METValidator

        METValidator(String errorMessage)
    • Method Detail

      • isValid

         abstract boolean isValid(@NonNull() CharSequence text, boolean isEmpty)

        Abstract method to implement your own validation checking.

        Parameters:
        text - The CharSequence representation of the text in the EditText field.
        isEmpty - Boolean indicating whether or not the text param is empty