@Deprecated public class Rfc822Validator extends Object implements AutoCompleteTextView.Validator
Rfc822Token
and Rfc822Tokenizer
.Constructor and Description |
---|
Rfc822Validator(String domain)
Deprecated.
Constructs a new validator that uses the specified domain name as
the default when none is specified.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
fixText(CharSequence cs)
Deprecated.
Corrects the specified text to make it valid.
|
boolean |
isValid(CharSequence text)
Deprecated.
Validates the specified text.
|
void |
setRemoveInvalid(boolean remove)
Deprecated.
Specify if the validator should remove invalid tokens instead of trying
to fix them.
|
public Rfc822Validator(String domain)
public boolean isValid(CharSequence text)
isValid
in interface AutoCompleteTextView.Validator
AutoCompleteTextView.Validator.fixText(CharSequence)
public void setRemoveInvalid(boolean remove)
remove
- true to remove tokens with the wrong format, false to
attempt to fix thempublic CharSequence fixText(CharSequence cs)
fixText
in interface AutoCompleteTextView.Validator
cs
- A string that doesn't pass validation: isValid(invalidText)
returns falseAutoCompleteTextView.Validator.isValid(CharSequence)