protected void parseQueries() throws InvalidQueryException { // check that query has been parsed if (query == null) query = processor.parse(querystr, context.getDeclarationContext()); }
pageContext.getAttribute(NavigatorApplicationIF.CONTEXT_KEY, PageContext.REQUEST_SCOPE); ParseContextIF pctxt = (ParseContextIF) ctxt.getDeclarationContext();
pageContext.getAttribute(NavigatorApplicationIF.CONTEXT_KEY, PageContext.REQUEST_SCOPE); ParseContextIF pctxt = (ParseContextIF) ctxt.getDeclarationContext();
query = processor.parse(querystr, context.getDeclarationContext());
protected TopicTreeNode buildTree() throws InvalidQueryException { TopicTreeNode root = new TopicTreeNode(null); QueryResultIF result = processor.execute(topquery, context .getDeclarationContext()); while (result.next()) { TopicIF topic = (TopicIF) result.getValue(0); TopicTreeNode group = new TopicTreeNode(topic); group.setParent(root); group.setAttribute("id", getId(topic)); if (openNodes.contains(topic)) { ancestors = new ArrayList(); process(group); if (group.getChildren().isEmpty()) group.setAttribute("action", null); else group.setAttribute("action", "close"); openNodes.add(topic); } else { // check if there are children QueryResultIF leaves = getChildren(topic); if (leaves.next()) group.setAttribute("action", "open"); else group.setAttribute("action", null); } } return root; }
.getDeclarationContext()); while (result.next()) { TopicIF topic = (TopicIF) result.getValue(0);