0
|
1 |
"{ Package: 'stx:goodies/xmlsuite' }"
|
|
2 |
|
|
3 |
"{ NameSpace: XMLv2 }"
|
|
4 |
|
|
5 |
Node subclass:#Entity
|
|
6 |
instanceVariableNames:'inputEncoding notationName publicId systemId xmlEncoding
|
|
7 |
xmlVersion'
|
|
8 |
classVariableNames:''
|
|
9 |
poolDictionaries:''
|
|
10 |
category:'XML Suite-DOM3'
|
|
11 |
!
|
|
12 |
|
|
13 |
|
|
14 |
!Entity methodsFor:'DOM3 helpers'!
|
|
15 |
|
|
16 |
computeLookupPrefix:arg
|
|
17 |
"Superclass says that I am responsible to implement this method"
|
|
18 |
|
|
19 |
self shouldImplement
|
|
20 |
|
|
21 |
"Created: / 18-06-2005 / 21:13:11 / janfrog"
|
|
22 |
!
|
|
23 |
|
|
24 |
postAdoptedBy:aDocument
|
|
25 |
|
|
26 |
self errorNotSupported
|
|
27 |
|
|
28 |
"Created: / 25-12-2005 / 10:15:19 / janfrog"
|
|
29 |
!
|
|
30 |
|
|
31 |
postImportBy:arg1 deep:arg2
|
|
32 |
"Nothing to do"
|
|
33 |
|
|
34 |
"Created: / 25-12-2005 / 11:01:36 / janfrog"
|
|
35 |
!
|
|
36 |
|
|
37 |
textContentOn:arg
|
|
38 |
"Superclass says that I am responsible to implement this method"
|
|
39 |
|
|
40 |
self shouldImplement
|
|
41 |
|
|
42 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
43 |
! !
|
|
44 |
|
|
45 |
!Entity methodsFor:'DOM3 interface'!
|
|
46 |
|
|
47 |
compareDocumentPosition:arg
|
|
48 |
"Superclass says that I am responsible to implement this method"
|
|
49 |
|
|
50 |
self shouldImplement
|
|
51 |
|
|
52 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
53 |
!
|
|
54 |
|
|
55 |
inputEncoding
|
|
56 |
^ inputEncoding
|
|
57 |
|
|
58 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
59 |
!
|
|
60 |
|
|
61 |
isDefaultNamespace:ns
|
|
62 |
|
|
63 |
^"unknown"false
|
|
64 |
|
|
65 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
66 |
!
|
|
67 |
|
|
68 |
lookupNamespaceURI:ns
|
|
69 |
|
|
70 |
^"unknown"false
|
|
71 |
|
|
72 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
73 |
!
|
|
74 |
|
|
75 |
nodeName
|
|
76 |
"Superclass says that I am responsible to implement this method"
|
|
77 |
|
|
78 |
self shouldImplement
|
|
79 |
|
|
80 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
81 |
!
|
|
82 |
|
|
83 |
nodeType
|
|
84 |
|
|
85 |
^Node ENTITY_NODE
|
|
86 |
|
|
87 |
"Created: / 17-06-2005 / 11:44:33 / janfrog"
|
|
88 |
!
|
|
89 |
|
|
90 |
normalize
|
|
91 |
"Superclass says that I am responsible to implement this method"
|
|
92 |
|
|
93 |
self shouldImplement
|
|
94 |
|
|
95 |
"Created: / 18-06-2005 / 20:18:17 / janfrog"
|
|
96 |
!
|
|
97 |
|
|
98 |
notationName
|
|
99 |
^ notationName
|
|
100 |
|
|
101 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
102 |
!
|
|
103 |
|
|
104 |
parentNode
|
|
105 |
|
|
106 |
^self domError:'Entity has no parent' code:#NOT_SUPPORTED_ERR
|
|
107 |
|
|
108 |
"Created: / 17-06-2005 / 12:04:52 / janfrog"
|
|
109 |
!
|
|
110 |
|
|
111 |
publicId
|
|
112 |
^ publicId
|
|
113 |
|
|
114 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
115 |
!
|
|
116 |
|
|
117 |
systemId
|
|
118 |
^ systemId
|
|
119 |
|
|
120 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
121 |
!
|
|
122 |
|
|
123 |
xmlEncoding
|
|
124 |
^ xmlEncoding
|
|
125 |
|
|
126 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
127 |
!
|
|
128 |
|
|
129 |
xmlVersion
|
|
130 |
^ xmlVersion
|
|
131 |
|
|
132 |
"Created: / 24-12-2005 / 10:34:51 / janfrog"
|
|
133 |
! !
|
|
134 |
|
|
135 |
!Entity methodsFor:'initialization'!
|
|
136 |
|
|
137 |
setNotationName: aString
|
|
138 |
|
|
139 |
notationName := aString
|
|
140 |
|
|
141 |
"Created: / 24-12-2005 / 10:35:14 / janfrog"
|
|
142 |
! !
|
|
143 |
|
|
144 |
!Entity methodsFor:'testing'!
|
|
145 |
|
|
146 |
isEntity
|
|
147 |
^ true
|
|
148 |
|
|
149 |
"Created: / 05-08-2005 / 14:27:51 / janfrog"
|
|
150 |
! !
|
|
151 |
|
|
152 |
!Entity methodsFor:'visiting'!
|
|
153 |
|
|
154 |
acceptVisitor:aVisitor
|
|
155 |
"Double dispatch back to the visitor, passing my type encoded in
|
|
156 |
the selector (visitor pattern)"
|
|
157 |
|
|
158 |
"stub code automatically generated - please change if required"
|
|
159 |
|
|
160 |
^ aVisitor visitEntity:self
|
|
161 |
|
|
162 |
"Created: / 05-08-2005 / 13:09:35 / janfrog"
|
|
163 |
! !
|
|
164 |
|
|
165 |
!Entity class methodsFor:'documentation'!
|
|
166 |
|
|
167 |
version
|
|
168 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__Entity.st,v 1.2 2005-12-25 10:52:23 vranyj1 Exp $'
|
|
169 |
! !
|