xquery/XQuery__DeleteCommand.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 02 Jul 2018 08:46:01 +0200
changeset 305 bad21c4f64bf
parent 296 ea3dbc023c80
permissions -rw-r--r--
Tagged Smalltalk/X 8.0.0

"{ 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_SVN
    ^ '$Id$'
! !