Xindice API
version 1.2m1

org.apache.xindice.core.query
Class QueryUtil

java.lang.Object
  extended byorg.apache.xindice.core.query.QueryUtil

public class QueryUtil
extends Object

Helper to convert NodeSet query result into the Document

Version:
$Revision: 595817 $, $Date: 2007-11-16 15:49:03 -0500 (Fri, 16 Nov 2007) $

Constructor Summary
QueryUtil()
           
 
Method Summary
static NamespaceMap mapNamespaces(Map 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 String queryResultsToString(NodeSet nodeSet)
          Adds additional meta data to the query results, and turns it into a String containing XML document.
static 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(Map 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 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 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.2m1

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