Package com.saxonica.ee.update
Class PendingUpdateListImpl
java.lang.Object
com.saxonica.ee.update.PendingUpdateListImpl
- All Implemented Interfaces:
PendingUpdateList
Concrete implementation of the Pending Update List
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PendingUpdateAction action) Add an action to the pending update listvoidaddPutAction(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
-
Constructor Details
-
PendingUpdateListImpl
public PendingUpdateListImpl()Create a Pending Update List
-
-
Method Details
-
add
Add an action to the pending update list- Parameters:
action- the Pending Update Action to be added to the list- Throws:
XPathException- if the pending update action conflicts with an action that is already on the list
-
addPutAction
Add a put() action to the pending update list- Specified by:
addPutActionin interfacePendingUpdateList- 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
-
apply
Apply the pending updates- Specified by:
applyin interfacePendingUpdateList- Parameters:
context- the XPath dynamic evaluation contextvalidationMode- the revalidation mode from the static context- Throws:
XPathException- if the operation fails
-
getAffectedTrees
Get the root nodes of the trees that are affected by updates in the pending update list- Specified by:
getAffectedTreesin interfacePendingUpdateList- Returns:
- the root nodes of affected trees, as a Set. Note that this includes all trees that have been updated; this is a superset of the trees that need to be revalidated, but updates that don't require revalidation are sufficiently unusual that we don't trouble with the distinction.
-