public class CreditCardNumberValidator extends Object implements Validation
Constructor and Description |
---|
CreditCardNumberValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(String coveredText,
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(String coveredText, String ruleID) throws Exception
Validation
validate
in interface Validation
coveredText
- covered text of the annotation that should be validatedruleID
- ruleID of the rule which created the matchException
- throws an exception if an validation error occurredCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.