org.ozoneDB.xml.util
Class OzoneXPathQuery

java.lang.Object
  |
  +--org.ozoneDB.xml.util.OzoneXPathQuery
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.infozone.tools.xml.queries.XPathQuery

public final class OzoneXPathQuery
extends java.lang.Object
implements org.infozone.tools.xml.queries.XPathQuery, java.io.Externalizable

This class represents a XPath that can be used to query the document of a XMLContainer.

Version:
$Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
Author:
SMB
See Also:
XMLContainer, Serialized Form

Field Summary
protected  XMLContainer delegate
           
protected  org.w3c.dom.traversal.NodeFilter filter
           
protected  org.w3c.dom.Node namespace
           
protected  java.lang.String qstring
           
protected  org.w3c.dom.Node rootNode
           
protected static long serialVersionUID
           
 
Constructor Summary
  OzoneXPathQuery()
           
protected OzoneXPathQuery(XMLContainer _delegate)
           
 
Method Summary
 org.infozone.tools.xml.queries.XObject execute()
          Execute the xpath.
 org.infozone.tools.xml.queries.XObject execute(org.w3c.dom.Node _rootNode)
          Execute the xpath.
 void readExternal(java.io.ObjectInput in)
           
 void setNamespace(org.w3c.dom.Node _namespace)
           
 void setNodeFilter(org.w3c.dom.traversal.NodeFilter _filter)
           
 void setQString(java.lang.String _qstring)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

qstring

protected java.lang.String qstring

filter

protected org.w3c.dom.traversal.NodeFilter filter

namespace

protected org.w3c.dom.Node namespace

rootNode

protected org.w3c.dom.Node rootNode

delegate

protected transient XMLContainer delegate
Constructor Detail

OzoneXPathQuery

public OzoneXPathQuery()

OzoneXPathQuery

protected OzoneXPathQuery(XMLContainer _delegate)
Method Detail

setQString

public void setQString(java.lang.String _qstring)
                throws java.lang.Exception
Specified by:
setQString in interface org.infozone.tools.xml.queries.XPathQuery
java.lang.Exception

setNamespace

public void setNamespace(org.w3c.dom.Node _namespace)
                  throws java.lang.Exception
Specified by:
setNamespace in interface org.infozone.tools.xml.queries.XPathQuery
java.lang.Exception

setNodeFilter

public void setNodeFilter(org.w3c.dom.traversal.NodeFilter _filter)
                   throws java.lang.Exception
Specified by:
setNodeFilter in interface org.infozone.tools.xml.queries.XPathQuery
java.lang.Exception

execute

public org.infozone.tools.xml.queries.XObject execute()
                                               throws java.lang.Exception
Execute the xpath.

java.lang.Exception
See Also:
execute(Node)

execute

public org.infozone.tools.xml.queries.XObject execute(org.w3c.dom.Node _rootNode)
                                               throws java.lang.Exception
Execute the xpath.

Specified by:
execute in interface org.infozone.tools.xml.queries.XPathQuery
Returns:
The XObject insulating the query result.
java.lang.Exception

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.