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: 2003/11/02 17:26:15 $
- Author:
- SMB
- See Also:
XMLContainer
,
Serialized Form
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 |
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
OzoneXPathQuery
public OzoneXPathQuery()
OzoneXPathQuery
protected OzoneXPathQuery(XMLContainer _delegate)
setQString
public void setQString(java.lang.String _qstring)
throws java.lang.Exception
- Specified by:
setQString
in interface org.infozone.tools.xml.queries.XPathQuery
- Throws:
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
- Throws:
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
- Throws:
java.lang.Exception
execute
public org.infozone.tools.xml.queries.XObject execute()
throws java.lang.Exception
- Execute the xpath.
- Throws:
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
- Parameters:
_rootNode
- The node from which the query should start. A value of
null specifies that the entire document should be searched.
- Returns:
- The XObject insulating the query result.
- Throws:
java.lang.Exception
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
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
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.