Xindice API
version 1.2m1

org.apache.xindice.core.xupdate
Class XPathQueryImpl

java.lang.Object
  extended byorg.apache.xindice.core.xupdate.XPathQueryImpl
All Implemented Interfaces:
Serializable, org.xmldb.common.xml.queries.XPathQuery

public final class XPathQueryImpl
extends Object
implements org.xmldb.common.xml.queries.XPathQuery

XPath Query Impl to handle Xalan 2 XPath constructs.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
See Also:
Serialized Form

Constructor Summary
XPathQueryImpl()
           
 
Method Summary
 org.xmldb.common.xml.queries.XObject execute(org.w3c.dom.Node rootNode)
          Execute the xpath.
 void setNamespace(org.w3c.dom.Node namespace)
          Sets the Namespace attribute of the XPathQueryImpl object
 void setNodeFilter(org.w3c.dom.traversal.NodeFilter filter)
          Sets the NodeFilter attribute of the XPathQueryImpl object
 void setQString(String qstring)
          Sets the QString attribute of the XPathQueryImpl object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathQueryImpl

public XPathQueryImpl()
Method Detail

setQString

public void setQString(String qstring)
                throws Exception
Sets the QString attribute of the XPathQueryImpl object

Specified by:
setQString in interface org.xmldb.common.xml.queries.XPathQuery
Parameters:
qstring - The new QString value
Throws:
Exception - Description of Exception

setNamespace

public void setNamespace(org.w3c.dom.Node namespace)
                  throws Exception
Sets the Namespace attribute of the XPathQueryImpl object

Specified by:
setNamespace in interface org.xmldb.common.xml.queries.XPathQuery
Parameters:
namespace - The new Namespace value
Throws:
Exception - Description of Exception

setNodeFilter

public void setNodeFilter(org.w3c.dom.traversal.NodeFilter filter)
                   throws Exception
Sets the NodeFilter attribute of the XPathQueryImpl object

Specified by:
setNodeFilter in interface org.xmldb.common.xml.queries.XPathQuery
Parameters:
filter - The new NodeFilter value
Throws:
Exception - Description of Exception

execute

public org.xmldb.common.xml.queries.XObject execute(org.w3c.dom.Node rootNode)
                                             throws Exception
Execute the xpath.

Specified by:
execute in interface org.xmldb.common.xml.queries.XPathQuery
Parameters:
rootNode - The node from which the query should start or null.
Returns:
The XObject insulating the query result.
Throws:
Exception

Xindice API
version 1.2m1

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