Class QueryContext
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.utils.QueryContext
-
public class QueryContext extends Object
INTERNAL: Used during traversal of queries to represent the context at any given point in the query.
-
-
Constructor Summary
Constructors Constructor Description QueryContext(TologQuery query)
QueryContext(TologQuery query, ParsedRule rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterClauseList()
boolean
getBooleanOption(String name)
Returns value of boolean option.int
getNestingLevel()
Returns the clause list nesting level we are at.Map
getParameterTypes()
String
getRuleName()
Returns the name of the rule we are traversing.Map
getVariableTypes()
void
leaveClauseList()
-
-
-
Constructor Detail
-
QueryContext
public QueryContext(TologQuery query, ParsedRule rule)
-
QueryContext
public QueryContext(TologQuery query)
-
-
Method Detail
-
getBooleanOption
public boolean getBooleanOption(String name)
Returns value of boolean option.
-
getRuleName
public 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 Map getVariableTypes()
-
getParameterTypes
public Map getParameterTypes()
-
enterClauseList
public void enterClauseList()
-
leaveClauseList
public void leaveClauseList()
-
-