RULE_ANNOTATION - The associated rule Annotation.DATA_TYPE - The data type this rule operates on.public abstract class AnnotationRule<RULE_ANNOTATION extends java.lang.annotation.Annotation,DATA_TYPE> extends Rule<DATA_TYPE>
Annotations have an
AnnotationRule paired to them, via the
ValidateUsing annotation. Like stock annotations,
custom annotations must also have a corresponding
AnnotationRule.| Modifier and Type | Field and Description |
|---|---|
protected RULE_ANNOTATION |
mRuleAnnotation |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationRule(RULE_ANNOTATION ruleAnnotation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage(android.content.Context context)
Returns a failure message associated with the rule.
|
getSequence, isValidprotected final RULE_ANNOTATION extends java.lang.annotation.Annotation mRuleAnnotation
protected AnnotationRule(RULE_ANNOTATION ruleAnnotation)
ruleAnnotation - The rule Annotation instance to which
this rule is paired.public java.lang.String getMessage(android.content.Context context)
getMessage in class Rule<DATA_TYPE>context - Any Context instance, usually an
Activity.