com.anywherecommerce.android.sdk.util.validator
Class BaseValidator
-
java.lang.Object
-
com.anywherecommerce.android.sdk.util.validator.BaseValidator
-
Direct Known Subclasses:AlphaNumericValidator, CreditCardValidator, DateValidator, EmailValidator, EmptyValidator, NoCheckValidator, NumericValidator, PasswordValidator, PersonNameValidator, PhoneValidator, PostalCodeValidator, RegexPatternValidator, SSNValidator, UsernameValidator, WebURLValidator-
public abstract class <span class="typeNameLabel">BaseValidator</span> extends java.lang.Object
Created by agupta on 2/19/16.
Field Summary
Modifier and TypeField and Description`protected java.lang.String``<span class="memberNameLink">
Constructor Summary
Constructor and Description`<span class="memberNameLink">
BaseValidator(java.lang.String errMessage)`
Method Summary
Modifier and TypeMethod and Description`java.lang.String``<span class="memberNameLink">
getErrorMessage()
boolean``
hasErrorMessage()
abstract boolean``
isValid(java.lang.String text)`
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Field Detail
errorMessage
`protected java.lang.String errorMessage`
Constructor Detail
BaseValidator
`public BaseValidator(java.lang.String errMessage)`
Method Detail
isValid
`public abstract boolean isValid(java.lang.String text)`
hasErrorMessage
`public boolean hasErrorMessage()`
getErrorMessage
`public java.lang.String getErrorMessage()`