public class NotAllowEmptyValidator extends METValidator
errorMessage| Constructor and Description |
|---|
NotAllowEmptyValidator(java.lang.String errorMessage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(java.lang.CharSequence text,
boolean isEmpty)
Abstract method to implement your own validation checking.
|
getErrorMessage, setErrorMessagepublic NotAllowEmptyValidator(java.lang.String errorMessage)
public boolean isValid(java.lang.CharSequence text,
boolean isEmpty)
METValidatorisValid in class METValidatortext - The CharSequence representation of the text in the EditText field. Cannot be null, but may be empty.isEmpty - Boolean indicating whether or not the text param is empty