org.xmldb.xupdate.lexus
Class XUpdateQueryImpl
java.lang.Object
org.xmldb.xupdate.lexus.XUpdateQueryImpl
- All Implemented Interfaces:
- java.io.Serializable, org.xmldb.common.xml.queries.XUpdateQuery
public class XUpdateQueryImpl
- extends java.lang.Object
- implements org.xmldb.common.xml.queries.XUpdateQuery
Note:
If the DOM implementation you use does not support DOM-Level 2, some
features will not work properly. XUpdate uses the method
getNamespaceURI
of the org.w3c.dom.Node
interface. This method returns null
if the current Node
has no namespace. Your DOM implementation should implement this method
and alway return null, then XUpdate should work better. Nevertheless
you cannot use some features. Inserting elements and attributes just
works, if you omit the optional attribute called namespace. For more
detail about XUpdate look at the
XUpdate Working Draft.
- Version:
- $Revision: 1.1 $ $Date: 2004/05/30 11:57:43 $
- Author:
- SMB, Timothy M. Dean
- See Also:
- Serialized Form
Method Summary |
void |
execute(org.w3c.dom.Node contextNode)
|
static void |
main(java.lang.String[] args)
Main-method. |
void |
setNamespace(org.w3c.dom.Node node)
|
void |
setNodeFilter(org.w3c.dom.traversal.NodeFilter filter)
|
void |
setQString(java.lang.String queryString)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_URI
public static final java.lang.String NAMESPACE_URI
- See Also:
- Constant Field Values
XUpdateQueryImpl
public XUpdateQueryImpl()
setQString
public void setQString(java.lang.String queryString)
throws org.xml.sax.SAXException
- Specified by:
setQString
in interface org.xmldb.common.xml.queries.XUpdateQuery
- Throws:
org.xml.sax.SAXException
setNamespace
public void setNamespace(org.w3c.dom.Node node)
- Specified by:
setNamespace
in interface org.xmldb.common.xml.queries.XUpdateQuery
setNodeFilter
public void setNodeFilter(org.w3c.dom.traversal.NodeFilter filter)
- Specified by:
setNodeFilter
in interface org.xmldb.common.xml.queries.XUpdateQuery
execute
public void execute(org.w3c.dom.Node contextNode)
throws java.lang.Exception
- Specified by:
execute
in interface org.xmldb.common.xml.queries.XUpdateQuery
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main-method. You can manually test your update operations.
- Throws:
java.lang.Exception
Copyright (c) 2002 The XML:DB Initiative All rights reserved