Xindice API
version 1.1b4

org.apache.xindice.core.query
Class QueryUtil

java.lang.Object
  |
  +--org.apache.xindice.core.query.QueryUtil

public class QueryUtil
extends java.lang.Object

Helper to convert NodeSet query result into the Document

Version:
CVS $Revision: 1.7 $, $Date: 2004/03/04 13:18:49 $

Constructor Summary
QueryUtil()
           
 
Method Summary
static NamespaceMap mapNamespaces(java.util.Hashtable namespaces)
          Maps a Hashtable containing namespace definitions into a Xindice NamespaceMap.
static org.w3c.dom.Document queryResultsToDOM(NodeSet nodeSet)
          Adds additional meta data to the query results, and turns it into a DOM document.
static org.w3c.dom.Document queryResultsToDOM(NodeSet nodeSet, boolean expandSource)
          Adds additional meta data to the query results, and turns it into a DOM document.
static java.lang.String queryResultsToString(NodeSet nodeSet)
          Adds additional meta data to the query results, and turns it into a String containing XML document.
static java.lang.String queryResultsToString(NodeSet nodeSet, boolean expandSource)
          Adds additional meta data to the query results, and turns it into a String containing XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryUtil

public QueryUtil()
Method Detail

mapNamespaces

public static NamespaceMap mapNamespaces(java.util.Hashtable namespaces)
Maps a Hashtable containing namespace definitions into a Xindice NamespaceMap.

queryResultsToDOM

public static org.w3c.dom.Document queryResultsToDOM(NodeSet nodeSet,
                                                     boolean expandSource)
Adds additional meta data to the query results, and turns it into a DOM document.
Parameters:
expandSource - if true, source meta attributes will be added

queryResultsToDOM

public static org.w3c.dom.Document queryResultsToDOM(NodeSet nodeSet)
Adds additional meta data to the query results, and turns it into a DOM document.

queryResultsToString

public static java.lang.String queryResultsToString(NodeSet nodeSet,
                                                    boolean expandSource)
Adds additional meta data to the query results, and turns it into a String containing XML document.
Parameters:
expandSource - if true, source meta attributes will be added

queryResultsToString

public static java.lang.String queryResultsToString(NodeSet nodeSet)
Adds additional meta data to the query results, and turns it into a String containing XML document.

Xindice API
version 1.1b4

Copyright (c) 1999-2004 The Apache Software Foundation. All Rights Reserved.