public boolean validate(){
  if (validators == null || validators.size() == 0) {
    return true;
  }
  CharSequence text=getText();
  boolean isEmpty=text.length() == 0;
  boolean isValid=true;
  for (  METValidator validator : validators) {
    isValid=isValid && validator.isValid(text,isEmpty);
    if (!isValid) {
      setError(validator.getErrorMessage());
      break;
    }
  }
  postInvalidate();
  return isValid;
}

public boolean validate ( ) { if ( validators == null || validators . size ( ) == 0 ) { return true ; } CharSequence text = getText ( ) ; boolean isEmpty = text . length ( ) == 0 ; boolean isValid = true ; for ( METValidator validator : validators ) { isValid = isValid && validator . isValid ( text , isEmpty ) ; if ( ! isValid ) { setError ( validator . getErrorMessage ( ) ) ; break ; } } postInvalidate ( ) ; return isValid ; }
check all validators , sets the error text if not < p / > note : this stops at the first validator to report invalid .
