public class CreditCardNumberValidator extends java.lang.Object implements Validation
Constructor and Description |
---|
CreditCardNumberValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(java.lang.String coveredText,
java.lang.String ruleID)
The validate method validates the covered text of an annotator and returns true or
false whether the annotation is correct or not.
|
public boolean validate(java.lang.String coveredText, java.lang.String ruleID) throws java.lang.Exception
Validation
validate
in interface Validation
coveredText
- covered text of the annotation that should be validatedruleID
- ruleID of the rule which created the matchjava.lang.Exception
- throws an exception if an validation error occurredCopyright © 2013. All Rights Reserved.