net.ontopia.topicmaps.query.impl.utils
Class QueryAnalyzer
java.lang.Object
net.ontopia.topicmaps.query.impl.utils.QueryAnalyzer
public class QueryAnalyzer
- extends java.lang.Object
INTERNAL: Analyzes the types of variables in the query. Finds the
type(s) of each variable and reports typing errors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryAnalyzer
public QueryAnalyzer()
analyzeTypes
public static BindingContext analyzeTypes(TologQuery query)
throws InvalidQueryException
- Throws:
InvalidQueryException
analyzeTypes
public static BindingContext analyzeTypes(java.util.List clauses,
boolean strict)
throws InvalidQueryException
- Throws:
InvalidQueryException
analyzeTypes
public static void analyzeTypes(java.util.List clauses,
BindingContext bc)
throws InvalidQueryException
- Throws:
InvalidQueryException
verifyParameters
public static void verifyParameters(TologQuery query,
java.util.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
Copyright © 2000-2012 Ontopia.