public class PatternValidator extends Object
Constructor and Description |
---|
PatternValidator() |
Modifier and Type | Method and Description |
---|---|
int |
getPatternLength()
Gets the length of the pattern.
|
int |
validate(List<String> queryTokens,
List<Token> annotations,
int from,
QueryParser queryParser)
This method takes two parameters the actual query issued and
annotations in which it checks if the annotations exist that are
validating for the given query
|
public int getPatternLength()
public int validate(List<String> queryTokens, List<Token> annotations, int from, QueryParser queryParser) throws SearchException
SearchException
Copyright © 2024 GATE. All rights reserved.