277
|
1 |
"{ Package: 'stx:goodies/xmlsuite/xquery' }"
|
|
2 |
|
|
3 |
"{ NameSpace: XQuery }"
|
|
4 |
|
|
5 |
TriggerCommand subclass:#ConnectCommand
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'XQuery-Trigger Creating'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!ConnectCommand class methodsFor:'priorities'!
|
|
14 |
|
|
15 |
priority
|
|
16 |
"Superclass says that I am responsible to implement this method"
|
|
17 |
|
|
18 |
^5
|
|
19 |
|
|
20 |
"Created: / 25-03-2012 / 15:18:19 / Adam Senk <senkadam@gmail.com>"
|
|
21 |
! !
|
|
22 |
|
|
23 |
!ConnectCommand methodsFor:'accessing'!
|
|
24 |
|
|
25 |
targetSequence
|
|
26 |
^ targetSequence
|
|
27 |
!
|
|
28 |
|
|
29 |
targetSequence:something
|
|
30 |
targetSequence := something.
|
|
31 |
!
|
|
32 |
|
|
33 |
triggerDefSequence
|
|
34 |
^ sourceSequence
|
|
35 |
|
|
36 |
"Modified: / 25-03-2012 / 13:31:24 / Adam Senk <senkadam@gmail.com>"
|
|
37 |
!
|
|
38 |
|
|
39 |
triggerDefSequence:something
|
|
40 |
sourceSequence := something.
|
|
41 |
|
|
42 |
"Modified: / 25-03-2012 / 13:32:02 / Adam Senk <senkadam@gmail.com>"
|
|
43 |
! !
|
|
44 |
|
|
45 |
!ConnectCommand methodsFor:'connecting'!
|
|
46 |
|
|
47 |
connect: triggerDefNode to: node
|
|
48 |
|
|
49 |
node documentAdaptor
|
|
50 |
connectTriggerDef: triggerDefNode nodeId to: node nodeId
|
|
51 |
|
|
52 |
"Created: / 25-03-2012 / 13:35:49 / Adam Senk <senkadam@gmail.com>"
|
|
53 |
! !
|
|
54 |
|
|
55 |
!ConnectCommand methodsFor:'executing'!
|
|
56 |
|
|
57 |
execute
|
|
58 |
"Superclass says that I am responsible to implement this method"
|
|
59 |
|
|
60 |
self sourceSequence
|
|
61 |
do:[:node|self connect: node to: self targetSequence first]
|
|
62 |
|
|
63 |
"Created: / 25-03-2012 / 13:33:53 / Adam Senk <senkadam@gmail.com>"
|
|
64 |
! !
|
|
65 |
|
|
66 |
!ConnectCommand class methodsFor:'documentation'!
|
|
67 |
|
|
68 |
version_SVN
|
|
69 |
^ '$Id$'
|
|
70 |
! !
|