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-- |
0 | 1 |
"{ Package: 'stx:goodies/xmlsuite/xquery' }" |
2 |
||
3 |
"{ NameSpace: XQuery }" |
|
4 |
||
5 |
UpdateCommand subclass:#DeleteCommand |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XQuery-Update Facility' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!DeleteCommand class methodsFor:'priorities'! |
|
14 |
||
15 |
priority |
|
16 |
"Superclass says that I am responsible to implement this method" |
|
17 |
||
18 |
^50 |
|
19 |
! ! |
|
20 |
||
21 |
!DeleteCommand methodsFor:'accessing'! |
|
22 |
||
23 |
sourceSequence: anXquerySequence |
|
24 |
||
25 |
self shouldNotImplement |
|
26 |
! ! |
|
27 |
||
28 |
!DeleteCommand methodsFor:'checks'! |
|
29 |
||
30 |
checkSourceSequence:arg |
|
31 |
"Superclass says that I am responsible to implement this method" |
|
32 |
||
33 |
self shouldNotImplement |
|
34 |
! |
|
35 |
||
36 |
checkTargetSequence: anXquerySequence |
|
37 |
||
38 |
"targetSequence can be anything" |
|
39 |
! ! |
|
40 |
||
41 |
!DeleteCommand methodsFor:'deleting'! |
|
42 |
||
43 |
deleteNode: node |
|
44 |
||
45 |
node documentAdaptor |
|
46 |
updDelete: node nodeId |
|
47 |
! ! |
|
48 |
||
49 |
!DeleteCommand methodsFor:'executing'! |
|
50 |
||
51 |
execute |
|
52 |
"Superclass says that I am responsible to implement this method" |
|
53 |
||
54 |
self targetSequence |
|
55 |
do:[:node|self deleteNode: node] |
|
56 |
! ! |
|
57 |
||
58 |
!DeleteCommand class methodsFor:'documentation'! |
|
59 |
||
232
9d8fd28b99b0
branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
60 |
version_SVN |
9d8fd28b99b0
branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
61 |
^ '$Id$' |
0 | 62 |
! ! |