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

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.utils.QueryContext

public class QueryContext
extends java.lang.Object

INTERNAL: Used during traversal of queries to represent the context at any given point in the query.


Constructor Summary
QueryContext(TologQuery query)
           
QueryContext(TologQuery query, ParsedRule rule)
           
 
Method Summary
 void enterClauseList()
           
 boolean getBooleanOption(java.lang.String name)
          Returns value of boolean option.
 int getNestingLevel()
          Returns the clause list nesting level we are at.
 java.util.Map getParameterTypes()
           
 java.lang.String getRuleName()
          Returns the name of the rule we are traversing.
 java.util.Map getVariableTypes()
           
 void leaveClauseList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryContext

public QueryContext(TologQuery query,
                    ParsedRule rule)

QueryContext

public QueryContext(TologQuery query)
Method Detail

getBooleanOption

public boolean getBooleanOption(java.lang.String name)
Returns value of boolean option.


getRuleName

public java.lang.String getRuleName()
Returns the name of the rule we are traversing. If we are traversing a query (that is, not a rule at all) null is returned.


getNestingLevel

public int getNestingLevel()
Returns the clause list nesting level we are at. The top level of a query or rule is 1.


getVariableTypes

public java.util.Map getVariableTypes()

getParameterTypes

public java.util.Map getParameterTypes()

enterClauseList

public void enterClauseList()

leaveClauseList

public void leaveClauseList()


Copyright © 2000-2012 Ontopia.