Package net.sf.saxon.expr
Interface PendingUpdateList
- All Known Implementing Classes:
PendingUpdateListImpl
public interface PendingUpdateList
A PendingUpdateList is created by updating expressions in XQuery Update.
The implementation of this interface is in Saxon-EE.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPutAction(NodeInfo node, String uri, Expression originator) Add a put() action to the pending update listvoidapply(XPathContext context, int validationMode) Apply the pending updatesGet the root nodes of the trees that are affected by updates in the pending update list
-
Method Details
-
apply
Apply the pending updates- Parameters:
context- the XPath dynamic evaluation contextvalidationMode- the revalidation mode from the static context- Throws:
XPathException- if the operation fails
-
getAffectedTrees
Set<MutableNodeInfo> getAffectedTrees()Get the root nodes of the trees that are affected by updates in the pending update list- Returns:
- the root nodes of affected trees, as a Set
-
addPutAction
Add a put() action to the pending update list- Parameters:
node- (the first argument of put())uri- (the second argument of put())originator- the originating put() expression, for diagnostics- Throws:
XPathException- in the event of an error, for example two documents with the same URI
-