xquery/trunk/XQuery__DeleteCommand.st
changeset 0 5057afe1ec87
child 232 9d8fd28b99b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xquery/trunk/XQuery__DeleteCommand.st	Tue Apr 08 19:47:42 2008 +0000
@@ -0,0 +1,62 @@
+"{ Package: 'stx:goodies/xmlsuite/xquery' }"
+
+"{ NameSpace: XQuery }"
+
+UpdateCommand subclass:#DeleteCommand
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'XQuery-Update Facility'
+!
+
+
+!DeleteCommand class methodsFor:'priorities'!
+
+priority
+    "Superclass says that I am responsible to implement this method"
+
+    ^50
+! !
+
+!DeleteCommand methodsFor:'accessing'!
+
+sourceSequence: anXquerySequence
+
+    self shouldNotImplement
+! !
+
+!DeleteCommand methodsFor:'checks'!
+
+checkSourceSequence:arg 
+    "Superclass says that I am responsible to implement this method"
+
+    self shouldNotImplement
+!
+
+checkTargetSequence: anXquerySequence 
+
+    "targetSequence can be anything"
+! !
+
+!DeleteCommand methodsFor:'deleting'!
+
+deleteNode: node
+
+    node documentAdaptor
+            updDelete: node nodeId
+! !
+
+!DeleteCommand methodsFor:'executing'!
+
+execute
+    "Superclass says that I am responsible to implement this method"
+
+    self targetSequence
+        do:[:node|self deleteNode: node]
+! !
+
+!DeleteCommand class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/xquery/XQuery__DeleteCommand.st,v 1.6 2008-01-02 14:08:54 wrobll1 Exp $'
+! !