author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 25 Jan 2016 16:35:43 +0000 | |
changeset 298 | 9696f76605bd |
parent 296 | ea3dbc023c80 |
permissions | -rw-r--r-- |
3
7909b6680107
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
1 |
"{ Package: 'stx:goodies/xmlsuite/core' }" |
0 | 2 |
|
3 |
"{ NameSpace: XMLv2 }" |
|
4 |
||
5 |
Node subclass:#ProcessingInstruction |
|
6 |
instanceVariableNames:'target data' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XML Suite-DOM3' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!ProcessingInstruction methodsFor:'DOM3 helpers'! |
|
14 |
||
15 |
computeLookupPrefix:arg |
|
16 |
"Superclass says that I am responsible to implement this method" |
|
17 |
||
18 |
self shouldImplement |
|
19 |
||
20 |
"Created: / 18-06-2005 / 21:13:11 / janfrog" |
|
21 |
! |
|
22 |
||
23 |
postImportBy:aDocument deep:aBoolean |
|
24 |
target := target copy. |
|
25 |
data := data copy |
|
26 |
||
27 |
"Created: / 25-12-2005 / 11:01:36 / janfrog" |
|
28 |
! |
|
29 |
||
30 |
textContentOn:arg |
|
31 |
"Superclass says that I am responsible to implement this method" |
|
32 |
||
33 |
self shouldImplement |
|
34 |
||
35 |
"Created: / 18-06-2005 / 20:18:17 / janfrog" |
|
36 |
! ! |
|
37 |
||
38 |
!ProcessingInstruction methodsFor:'DOM3 interface'! |
|
39 |
||
40 |
compareDocumentPosition:arg |
|
41 |
"Superclass says that I am responsible to implement this method" |
|
42 |
||
43 |
self shouldImplement |
|
44 |
||
45 |
"Created: / 18-06-2005 / 20:18:17 / janfrog" |
|
46 |
! |
|
47 |
||
48 |
isDefaultNamespace:arg |
|
49 |
"Superclass says that I am responsible to implement this method" |
|
50 |
||
51 |
self shouldImplement |
|
52 |
||
53 |
"Created: / 18-06-2005 / 20:18:17 / janfrog" |
|
54 |
! |
|
55 |
||
56 |
lookupNamespaceURI:arg |
|
57 |
"Superclass says that I am responsible to implement this method" |
|
58 |
||
59 |
self shouldImplement |
|
60 |
||
61 |
"Created: / 18-06-2005 / 20:18:17 / janfrog" |
|
62 |
! |
|
63 |
||
64 |
nodeName |
|
65 |
||
66 |
^self target |
|
67 |
||
68 |
"Created: / 17-06-2005 / 11:34:47 / janfrog" |
|
69 |
! |
|
70 |
||
71 |
nodeType |
|
72 |
||
73 |
^Node PROCESSING_INSTRUCTION_NODE |
|
74 |
||
75 |
"Created: / 17-06-2005 / 11:45:22 / janfrog" |
|
76 |
! |
|
77 |
||
78 |
nodeValue |
|
79 |
||
80 |
^self data |
|
81 |
||
82 |
"Created: / 17-06-2005 / 11:36:27 / janfrog" |
|
83 |
! |
|
84 |
||
85 |
nodeValue:value |
|
86 |
||
87 |
^self data:value |
|
88 |
||
89 |
"Created: / 17-06-2005 / 12:08:44 / janfrog" |
|
90 |
! |
|
91 |
||
92 |
normalize |
|
93 |
"Nothing to do" |
|
94 |
||
95 |
"Created: / 18-06-2005 / 20:18:17 / janfrog" |
|
96 |
"Modified: / 28-12-2005 / 16:49:23 / janfrog" |
|
97 |
! ! |
|
98 |
||
99 |
!ProcessingInstruction methodsFor:'accessing'! |
|
100 |
||
101 |
data |
|
102 |
^ data |
|
103 |
||
104 |
"Created: / 04-08-2005 / 13:31:49 / janfrog" |
|
105 |
! |
|
106 |
||
107 |
data:something |
|
108 |
data := something. |
|
109 |
||
110 |
"Created: / 04-08-2005 / 13:31:49 / janfrog" |
|
111 |
! |
|
112 |
||
113 |
target |
|
114 |
^ target |
|
115 |
||
116 |
"Created: / 04-08-2005 / 13:31:49 / janfrog" |
|
117 |
! |
|
118 |
||
119 |
target:something |
|
120 |
target := something. |
|
121 |
||
122 |
"Created: / 04-08-2005 / 13:31:49 / janfrog" |
|
123 |
! ! |
|
124 |
||
125 |
!ProcessingInstruction methodsFor:'testing'! |
|
126 |
||
127 |
isProcessingInstruction |
|
128 |
^ true |
|
129 |
||
130 |
"Created: / 05-08-2005 / 14:27:51 / janfrog" |
|
131 |
! ! |
|
132 |
||
133 |
!ProcessingInstruction methodsFor:'visiting'! |
|
134 |
||
135 |
acceptVisitor:aVisitor |
|
136 |
"Double dispatch back to the visitor, passing my type encoded in |
|
137 |
the selector (visitor pattern)" |
|
138 |
||
139 |
"stub code automatically generated - please change if required" |
|
140 |
||
141 |
^ aVisitor visitProcessingInstruction:self |
|
142 |
||
143 |
"Created: / 05-08-2005 / 13:09:35 / janfrog" |
|
144 |
! ! |
|
145 |
||
146 |
!ProcessingInstruction class methodsFor:'documentation'! |
|
147 |
||
148 |
version |
|
149 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__ProcessingInstruction.st,v 1.3 2005-12-28 16:14:40 vranyj1 Exp $' |
|
174
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3
diff
changeset
|
150 |
! |
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3
diff
changeset
|
151 |
|
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3
diff
changeset
|
152 |
version_SVN |
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3
diff
changeset
|
153 |
^ '$Id$' |
0 | 154 |
! ! |