Class QueryAnalyzer
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.utils.QueryAnalyzer
-
public class QueryAnalyzer extends Object
INTERNAL: Analyzes the types of variables in the query. Finds the type(s) of each variable and reports typing errors.
-
-
Constructor Summary
Constructors Constructor Description QueryAnalyzer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BindingContext
analyzeTypes(List clauses, boolean strict)
static void
analyzeTypes(List clauses, BindingContext bc)
static BindingContext
analyzeTypes(TologQuery query)
static void
verifyParameters(TologQuery query, Map arguments)
Verifies that all used parameters are specified and that they are of the correct types.
-
-
-
Method Detail
-
analyzeTypes
public static BindingContext analyzeTypes(TologQuery query) throws InvalidQueryException
- Throws:
InvalidQueryException
-
analyzeTypes
public static BindingContext analyzeTypes(List clauses, boolean strict) throws InvalidQueryException
- Throws:
InvalidQueryException
-
analyzeTypes
public static void analyzeTypes(List clauses, BindingContext bc) throws InvalidQueryException
- Throws:
InvalidQueryException
-
verifyParameters
public static void verifyParameters(TologQuery query, Map arguments) throws InvalidQueryException
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
-
-