Class QueryAnalyzer
java.lang.Object
net.ontopia.topicmaps.query.impl.utils.QueryAnalyzer
INTERNAL: Analyzes the types of variables in the query. Finds the
type(s) of each variable and reports typing errors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BindingContextanalyzeTypes(List clauses, boolean strict) static voidanalyzeTypes(List clauses, BindingContext bc) static BindingContextanalyzeTypes(TologQuery query) static voidverifyParameters(TologQuery query, Map arguments) Verifies that all used parameters are specified and that they are of the correct types.
-
Constructor Details
-
QueryAnalyzer
public QueryAnalyzer()
-
-
Method Details
-
analyzeTypes
- Throws:
InvalidQueryException
-
analyzeTypes
public static BindingContext analyzeTypes(List clauses, boolean strict) throws InvalidQueryException - Throws:
InvalidQueryException
-
analyzeTypes
- Throws:
InvalidQueryException
-
verifyParameters
Verifies that all used parameters are specified and that they are of the correct types. We don't care if too many arguments are specified so long as all the ones used in the query are right.- Throws:
InvalidQueryException
-