public class ISBNNumberValidator extends Object implements Validation
Constructor and Description |
---|
ISBNNumberValidator() |
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 © 2016. All rights reserved.