net.ontopia.topicmaps.query.impl.utils
Class QueryAnalyzer

java.lang.Object
  extended by 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.


Constructor Summary
QueryAnalyzer()
           
 
Method Summary
static void analyzeTypes(java.util.List clauses, BindingContext bc)
           
static BindingContext analyzeTypes(java.util.List clauses, boolean strict)
           
static BindingContext analyzeTypes(TologQuery query)
           
static void verifyParameters(TologQuery query, java.util.Map arguments)
          Verifies that all used parameters are specified and that they are of the correct types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryAnalyzer

public QueryAnalyzer()
Method Detail

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.