org.exist.xupdate
Class Replace

java.lang.Object
  extended byorg.exist.xupdate.Modification
      extended byorg.exist.xupdate.Replace

public class Replace
extends Modification

Implements xupdate:replace, an extension to the XUpdate standard. The modification replaces a node and its contents. It differs from xupdate:update which only replaces the contents of the node, not the node itself.

Author:
wolf

Field Summary
 
Fields inherited from class org.exist.xupdate.Modification
broker, content, docs, lockedDocuments, LOG, namespaces, selectStmt, variables
 
Constructor Summary
Replace(DBBroker broker, DocumentSet docs, java.lang.String selectStmt, java.util.Map namespaces, java.util.Map variables)
           
 
Method Summary
 java.lang.String getName()
           
 long process(Txn transaction)
          Process the modification.
 
Methods inherited from class org.exist.xupdate.Modification
checkFragmentation, declareNamespaces, declareVariables, getAccessContext, select, selectAndLock, setAccessContext, setContent, toString, unlockDocuments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Replace

public Replace(DBBroker broker,
               DocumentSet docs,
               java.lang.String selectStmt,
               java.util.Map namespaces,
               java.util.Map variables)
Parameters:
broker -
docs -
selectStmt -
namespaces -
variables -
Method Detail

process

public long process(Txn transaction)
             throws PermissionDeniedException,
                    LockException,
                    EXistException,
                    XPathException
Description copied from class: Modification
Process the modification. This is the main method that has to be implemented by all subclasses.

Specified by:
process in class Modification
Returns:
Throws:
EXistException
LockException
XPathException
PermissionDeniedException

getName

public java.lang.String getName()
Specified by:
getName in class Modification


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.