1 |
wakaba |
1.1 |
Module: |
2 |
wakaba |
1.2 |
@QName: |
3 |
|
|
MDOM:DOMViews |
4 |
wakaba |
1.1 |
@Namespace: |
5 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/views# |
6 |
|
|
@BindingName: |
7 |
|
|
@@@: views |
8 |
|
|
@@Type: |
9 |
|
|
lang:IDL-DOM |
10 |
|
|
@@prefix: dom.w3c.org |
11 |
wakaba |
1.2 |
|
12 |
wakaba |
1.1 |
@Description: |
13 |
|
|
@@lang:en |
14 |
|
|
@@@: |
15 |
|
|
A document may have one or more <DFN:view>s associated |
16 |
|
|
with it. That is, a view is a presentation of a source document. |
17 |
|
|
\ |
18 |
|
|
A view may be static or dynamic, or may has other characteristics. |
19 |
|
|
All such views are derived from the <IF:AbstractView> |
20 |
|
|
interface defined in this module. |
21 |
|
|
|
22 |
|
|
@Author: |
23 |
|
|
@@FullName: Wakaba |
24 |
|
|
@@Mail: w@suika.fam.cx |
25 |
|
|
@License: |
26 |
|
|
license:Perl+MPL |
27 |
wakaba |
1.2 |
@Date: |
28 |
|
|
@@@: |
29 |
|
|
$Date: 2004/12/29 12:17:42 $ |
30 |
|
|
@@ContentType: |
31 |
|
|
dis:Date.RCS |
32 |
wakaba |
1.1 |
|
33 |
wakaba |
1.2 |
@DefaultFor: |
34 |
|
|
ManakaiDOM:ManakaiDOMLatest |
35 |
wakaba |
1.1 |
|
36 |
wakaba |
1.2 |
@Require: |
37 |
|
|
@@Module: |
38 |
|
|
@@@Name: DOMCore |
39 |
|
|
@@Module: |
40 |
|
|
@@@Name: DOMViews |
41 |
|
|
@@@WithFor: |
42 |
|
|
ManakaiDOM:ManakaiDOM |
43 |
|
|
@@Module: |
44 |
|
|
@@@Name: DOMViews |
45 |
|
|
@@@WithFor: |
46 |
|
|
ManakaiDOM:ManakaiDOM2 |
47 |
|
|
@@Module: |
48 |
|
|
@@@Name: DOMViews |
49 |
|
|
@@@WithFor: |
50 |
|
|
ManakaiDOM:ManakaiDOMLatest |
51 |
|
|
|
52 |
|
|
Namespace: |
53 |
|
|
@dis: |
54 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis-- |
55 |
|
|
@dis2pm: |
56 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/11/8/dis2pm# |
57 |
|
|
@DOMMain: |
58 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/main# |
59 |
|
|
@lang: |
60 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/lang# |
61 |
|
|
@license: |
62 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/license# |
63 |
|
|
@ManakaiDOM: |
64 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom# |
65 |
|
|
@ManakaiDOMCore: |
66 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/mdom-core# |
67 |
|
|
@MDOM: |
68 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#ManakaiDOM. |
69 |
|
|
@MDOMX: |
70 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/4/manakai-dom-exception# |
71 |
|
|
@Perl: |
72 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#Perl-- |
73 |
|
|
@rdf: |
74 |
|
|
http://www.w3.org/1999/02/22-rdf-syntax-ns# |
75 |
|
|
@rdfs: |
76 |
|
|
http://www.w3.org/2000/01/rdf-schema# |
77 |
|
|
@TreeCore:\ |
78 |
|
|
|
79 |
|
|
## -- Features |
80 |
|
|
|
81 |
|
|
ElementTypeBinding: |
82 |
|
|
@Name: FeatureDef |
83 |
|
|
@ElementType: |
84 |
|
|
dis:ResourceDef |
85 |
|
|
@ShadowContent: |
86 |
|
|
@@rdf:type: |
87 |
|
|
DOMMain:DOMFeature |
88 |
|
|
@@AliasFor: |
89 |
|
|
@@@@: |
90 |
|
|
::ManakaiDOM:all |
91 |
|
|
@@@For: |
92 |
|
|
!=ManakaiDOM:all |
93 |
|
|
ElementTypeBinding: |
94 |
|
|
@Name: FeatureVerDef |
95 |
|
|
@ElementType: |
96 |
|
|
dis:ResourceDef |
97 |
|
|
@ShadowContent: |
98 |
|
|
@@rdf:type: |
99 |
|
|
DOMMain:DOMFeature |
100 |
|
|
|
101 |
|
|
ElementTypeBinding: |
102 |
|
|
@Name: featureName |
103 |
|
|
@ElementType: |
104 |
|
|
dis:AppName |
105 |
|
|
@ShadowContent: |
106 |
|
|
@@ContentType: |
107 |
|
|
dis:String |
108 |
|
|
|
109 |
|
|
FeatureDef: |
110 |
|
|
@featureName: Views |
111 |
|
|
@QName: ViewsFeature |
112 |
|
|
@FeatureVerDef: |
113 |
wakaba |
1.1 |
@@Version:2.0 |
114 |
wakaba |
1.2 |
@@QName: ViewsFeature20 |
115 |
|
|
@@ISA: ViewsFeature |
116 |
wakaba |
1.1 |
@@FullName: |
117 |
|
|
@@@lang:en |
118 |
|
|
@@@@: DOM Level 2 Views |
119 |
wakaba |
1.2 |
@@DOMMain:requireFeature: |
120 |
|
|
DOMCore:CoreFeature20 |
121 |
|
|
|
122 |
|
|
ElementTypeBinding: |
123 |
|
|
@Name: PerlDef |
124 |
|
|
@ElementType: |
125 |
|
|
dis:Def |
126 |
|
|
@ShadowContent: |
127 |
|
|
@@ContentType: |
128 |
|
|
lang:Perl |
129 |
|
|
|
130 |
|
|
ElementTypeBinding: |
131 |
|
|
@Name: IF |
132 |
|
|
@ElementType: |
133 |
|
|
dis:ResourceDef |
134 |
|
|
@ShadowContent: |
135 |
|
|
@@rdf:type: |
136 |
|
|
@@@@: |
137 |
|
|
dis:MultipleResource |
138 |
|
|
@@@ForCheck: |
139 |
|
|
!ManakaiDOM:ForClass !ManakaiDOM:ForIF |
140 |
|
|
@@rdf:type: |
141 |
|
|
@@@@: |
142 |
|
|
ManakaiDOM:IF |
143 |
|
|
@@@ForCheck: |
144 |
|
|
ManakaiDOM:ForIF |
145 |
|
|
@@rdf:type: |
146 |
|
|
@@@@: |
147 |
|
|
ManakaiDOM:Class |
148 |
|
|
@@@ForCheck: |
149 |
|
|
ManakaiDOM:ForClass |
150 |
|
|
@@resourceFor: |
151 |
|
|
ManakaiDOM:ForIF |
152 |
|
|
@@resourceFor: |
153 |
|
|
@@@@: |
154 |
|
|
ManakaiDOM:ForClass |
155 |
|
|
@@@ForCheck: |
156 |
|
|
ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM |
157 |
|
|
@@ForCheck: |
158 |
|
|
ManakaiDOM:DOM |
159 |
|
|
@@ISA: |
160 |
|
|
@@@@: |
161 |
|
|
ManakaiDOM:ManakaiDOMObject |
162 |
|
|
@@@ForCheck: |
163 |
|
|
ManakaiDOM:ForClass |
164 |
|
|
@@ISA: |
165 |
wakaba |
1.1 |
@@@@: |
166 |
wakaba |
1.2 |
::ManakaiDOM:ManakaiDOM |
167 |
|
|
@@@ForCheck: |
168 |
|
|
ManakaiDOM:ForIF |
169 |
|
|
@@@For: |
170 |
|
|
ManakaiDOM:ManakaiDOM2 |
171 |
|
|
|
172 |
|
|
ElementTypeBinding: |
173 |
|
|
@Name: Method |
174 |
|
|
@ElementType: |
175 |
|
|
dis:ResourceDef |
176 |
|
|
@ShadowContent: |
177 |
|
|
@@rdf:type: |
178 |
|
|
ManakaiDOM:DOMMethod |
179 |
|
|
@@ForCheck: |
180 |
|
|
ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM |
181 |
|
|
ElementTypeBinding: |
182 |
|
|
@Name: IntMethod |
183 |
|
|
@ElementType: |
184 |
|
|
dis:ResourceDef |
185 |
|
|
@ShadowContent: |
186 |
|
|
@@rdf:type: |
187 |
|
|
ManakaiDOM:DOMMethod |
188 |
|
|
@@ForCheck: |
189 |
|
|
ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM |
190 |
|
|
@@ManakaiDOM:isForInternal: 1 |
191 |
|
|
ElementTypeBinding: |
192 |
|
|
@Name: ReMethod |
193 |
|
|
@ElementType: |
194 |
|
|
dis:ResourceDef |
195 |
|
|
@ShadowContent: |
196 |
|
|
@@rdf:type: |
197 |
|
|
ManakaiDOM:DOMMethod |
198 |
|
|
@@ForCheck: |
199 |
|
|
ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM |
200 |
|
|
@@ManakaiDOM:isRedefining: 1 |
201 |
|
|
ElementTypeBinding: |
202 |
|
|
@Name: Param |
203 |
|
|
@ElementType: |
204 |
|
|
dis:ResourceDef |
205 |
|
|
@ShadowContent: |
206 |
|
|
@@rdf:type: |
207 |
|
|
ManakaiDOM:DOMMethodParameter |
208 |
|
|
ElementTypeBinding: |
209 |
|
|
@Name: Exception |
210 |
|
|
@ElementType: |
211 |
|
|
ManakaiDOM:raises |
212 |
|
|
|
213 |
|
|
ElementTypeBinding: |
214 |
|
|
@Name: Return |
215 |
|
|
@ElementType: |
216 |
|
|
dis:ResourceDef |
217 |
|
|
@ShadowContent: |
218 |
|
|
@@rdf:type: |
219 |
|
|
ManakaiDOM:DOMMethodReturn |
220 |
|
|
ElementTypeBinding: |
221 |
|
|
@Name: Attr |
222 |
|
|
@ElementType: |
223 |
|
|
dis:ResourceDef |
224 |
|
|
@ShadowContent: |
225 |
|
|
@@rdf:type: |
226 |
|
|
ManakaiDOM:DOMAttribute |
227 |
|
|
@@ForCheck: |
228 |
|
|
ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM |
229 |
|
|
|
230 |
|
|
ElementTypeBinding: |
231 |
|
|
@Name: ReAttr |
232 |
|
|
@ElementType: |
233 |
|
|
dis:ResourceDef |
234 |
|
|
@ShadowContent: |
235 |
|
|
@@rdf:type: |
236 |
|
|
ManakaiDOM:DOMAttribute |
237 |
|
|
@@ForCheck: |
238 |
|
|
ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM |
239 |
|
|
@@ManakaiDOM:isRedefining: 1 |
240 |
|
|
ElementTypeBinding: |
241 |
|
|
@Name: Get |
242 |
|
|
@ElementType: |
243 |
|
|
dis:ResourceDef |
244 |
|
|
@ShadowContent: |
245 |
|
|
@@rdf:type: |
246 |
|
|
ManakaiDOM:DOMAttrGet |
247 |
|
|
ElementTypeBinding: |
248 |
|
|
@Name: Set |
249 |
|
|
@ElementType: |
250 |
|
|
dis:ResourceDef |
251 |
|
|
@ShadowContent: |
252 |
|
|
@@rdf:type: |
253 |
|
|
ManakaiDOM:DOMAttrSet |
254 |
|
|
ElementTypeBinding: |
255 |
|
|
@Name: InCase |
256 |
|
|
@ElementType: |
257 |
|
|
dis:ResourceDef |
258 |
|
|
@ShadowContent: |
259 |
|
|
@@rdf:type: |
260 |
|
|
ManakaiDOM:InCase |
261 |
|
|
|
262 |
|
|
ElementTypeBinding: |
263 |
|
|
@Name: ConstGroup |
264 |
|
|
@ElementType: |
265 |
|
|
dis:ResourceDef |
266 |
|
|
@ShadowContent: |
267 |
|
|
@@rdf:type: |
268 |
|
|
ManakaiDOM:ConstGroup |
269 |
|
|
@@ForCheck: |
270 |
|
|
ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM |
271 |
|
|
|
272 |
|
|
ElementTypeBinding: |
273 |
|
|
@Name: L2IF |
274 |
|
|
@ElementType: |
275 |
|
|
DOMMain:implementFeature |
276 |
|
|
@ShadowContent: |
277 |
|
|
@@@: ViewsFeature20 |
278 |
|
|
@@For: |
279 |
|
|
ManakaiDOM:DOM2 |
280 |
|
|
@ShadowSibling: |
281 |
|
|
@@For: |
282 |
|
|
ManakaiDOM:DOM2 |
283 |
|
|
@@For: |
284 |
|
|
=ManakaiDOM:ManakaiDOM |
285 |
|
|
|
286 |
|
|
ElementTypeBinding: |
287 |
|
|
@Name: L2 |
288 |
|
|
@ElementType: |
289 |
|
|
DOMMain:implementFeature |
290 |
|
|
@ShadowContent: |
291 |
|
|
@@@: ViewsFeature20 |
292 |
|
|
@@For: |
293 |
|
|
ManakaiDOM:DOM2 |
294 |
wakaba |
1.1 |
|
295 |
|
|
|
296 |
|
|
IF: |
297 |
wakaba |
1.2 |
@Name: |
298 |
|
|
@@@: AbstractView |
299 |
|
|
@@ForCheck: |
300 |
|
|
ManakaiDOM:ForIF |
301 |
|
|
|
302 |
|
|
@QName: |
303 |
|
|
@@@: ManakaiDOMAbstractView |
304 |
|
|
@@ForCheck: |
305 |
|
|
ManakaiDOM:ForClass |
306 |
|
|
|
307 |
|
|
@Level[list]: 2 |
308 |
|
|
@SpecLevel[list]: 2 |
309 |
|
|
@L2IF: |
310 |
|
|
|
311 |
wakaba |
1.1 |
@Description: |
312 |
|
|
@@lang:en |
313 |
|
|
@@@: |
314 |
|
|
A base interface from which all views shall derived. |
315 |
|
|
|
316 |
|
|
@Attr: |
317 |
|
|
@@Name: document |
318 |
|
|
@@Description: |
319 |
|
|
@@@lang:en |
320 |
|
|
@@@@: |
321 |
|
|
The source <IF:DocumentView> of which this is an |
322 |
|
|
<IF:AbstractView>. |
323 |
|
|
@@Get: |
324 |
|
|
@@@Type: DocumentView |
325 |
|
|
@@@Def: |
326 |
wakaba |
1.2 |
@@@@ContentType: |
327 |
wakaba |
1.1 |
lang:dis |
328 |
|
|
@@@@GetPropNode: |
329 |
|
|
DOMViews:document |
330 |
|
|
|
331 |
|
|
@IntMethod: |
332 |
|
|
@@Name: newObject |
333 |
|
|
@@Description: |
334 |
|
|
@@@lang:en |
335 |
|
|
@@@@: |
336 |
|
|
Construct an object for a new instance of the <IF:AbstractView>. |
337 |
|
|
@@Return: |
338 |
|
|
@@@Type: |
339 |
|
|
ManakaiDOM:ManakaiDOMNodeObject |
340 |
|
|
@@@Description: |
341 |
|
|
@@@@lang:en |
342 |
|
|
@@@@@: |
343 |
|
|
The object for the <IF:AbstractView> to be created. |
344 |
wakaba |
1.2 |
@@@PerlDef: |
345 |
wakaba |
1.1 |
@@@@@: |
346 |
wakaba |
1.2 |
my $node = $r = <ClassM::ManakaiDOM:ManakaiDOMNodeObject.new>; |
347 |
|
|
push @{$node->{<Q::TreeCore:origin>}}, <Q::DOMViews:document>; |
348 |
wakaba |
1.1 |
@@@ImplNote: |
349 |
|
|
@@@@lang:en |
350 |
|
|
@@@@@: |
351 |
|
|
Properties required to be a legal <IF:AbstractView> object: |
352 |
|
|
<Q:DOMViews:document>. |
353 |
|
|
\ |
354 |
|
|
Optional properties: none. |
355 |
wakaba |
1.2 |
|
356 |
|
|
@IntMethod: |
357 |
|
|
@@Name: getNodeReference |
358 |
|
|
@@Description: |
359 |
|
|
@@@lang:en |
360 |
|
|
@@@@: |
361 |
|
|
Creates a new <IF::AbstractView> object blessed with an appropriate |
362 |
|
|
class. |
363 |
|
|
@@Param: |
364 |
|
|
@@@Name: object |
365 |
|
|
@@@Type: |
366 |
|
|
ManakaiDOM:ManakaiDOMNodeObject |
367 |
|
|
@@@Description: |
368 |
|
|
@@@@lang:en |
369 |
|
|
@@@@@: The node object referred to. |
370 |
|
|
@@Param: |
371 |
|
|
@@@Name:noSpecializedInterface |
372 |
|
|
@@@Type: |
373 |
|
|
DOMMain:boolean |
374 |
|
|
@@@Description: |
375 |
|
|
@@@@lang:en |
376 |
|
|
@@@@@: |
377 |
|
|
Whether the specialized interface for the type (such as |
378 |
|
|
element type or document type) is selected if available. |
379 |
|
|
@@@InCase: |
380 |
|
|
@@@@Value:true |
381 |
|
|
@@@@Description: |
382 |
|
|
@@@@@lang:en |
383 |
|
|
@@@@@@: |
384 |
|
|
Specialized object is not returned however the |
385 |
|
|
configuration parameter value is set. |
386 |
|
|
\ |
387 |
|
|
Note that even if the specialized interface is not |
388 |
|
|
selected by default, the specialized object can be |
389 |
|
|
obtained from <M:Node.getFeature>. |
390 |
|
|
@@@InCase: |
391 |
|
|
@@@@Value:false |
392 |
|
|
@@@@Description: |
393 |
|
|
@@@@@lang:en |
394 |
|
|
@@@@@@: |
395 |
|
|
Specialized object is returned unless the configuration |
396 |
|
|
disables it. |
397 |
|
|
@@Return: |
398 |
|
|
@@@Type: ManakaiDOMAbstractView |
399 |
|
|
@@@Description: |
400 |
|
|
@@@@lang:en |
401 |
|
|
@@@@@: The node reference. |
402 |
|
|
@@@PerlDef: |
403 |
|
|
## TODO: Find class |
404 |
|
|
$r = $object-><M::ManakaiDOM:ManakaiDOMNodeObject.newReference> |
405 |
|
|
(<ClassName::AbstractView>); |
406 |
wakaba |
1.1 |
##IF:AbstractView |
407 |
|
|
|
408 |
|
|
IF: |
409 |
wakaba |
1.2 |
@Name: |
410 |
|
|
@@@: DocumentView |
411 |
|
|
@@ForCheck: |
412 |
|
|
ManakaiDOM:ForIF |
413 |
|
|
|
414 |
|
|
@Name: |
415 |
|
|
@@@: ManakaiDOMDocumentView |
416 |
|
|
@@ForCheck: |
417 |
|
|
ManakaiDOM:ForClass |
418 |
|
|
@ISA: |
419 |
wakaba |
1.1 |
@@@: |
420 |
wakaba |
1.2 |
DOMCore:ManakaiDOMDocument |
421 |
|
|
@@ForCheck: |
422 |
|
|
ManakaiDOM:ForClass |
423 |
wakaba |
1.1 |
|
424 |
|
|
@Level[list]: 2 |
425 |
|
|
@SpecLevel[list]: 2 |
426 |
wakaba |
1.2 |
@L2IF: |
427 |
wakaba |
1.1 |
|
428 |
wakaba |
1.2 |
@Description: |
429 |
|
|
@@lang:en |
430 |
wakaba |
1.1 |
@@@: |
431 |
wakaba |
1.2 |
The interface implemented by <IF:Document> object in |
432 |
|
|
DOM Views implementation. |
433 |
wakaba |
1.1 |
|
434 |
|
|
@Attr: |
435 |
|
|
@@Name: defaultView |
436 |
|
|
@@Description: |
437 |
|
|
@@@lang:en |
438 |
|
|
@@@@: |
439 |
|
|
The default <IF:AbstractView> for this document. |
440 |
|
|
@@Get: |
441 |
|
|
@@@Type: AbstractView |
442 |
|
|
@@@InCase: |
443 |
|
|
@@@@Value: |
444 |
|
|
@@@@@is-null:1 |
445 |
|
|
@@@@Description: |
446 |
|
|
@@@@@lang:en |
447 |
|
|
@@@@@@: |
448 |
|
|
No <IF:AbstractView> available. |
449 |
wakaba |
1.2 |
@@@PerlDef: |
450 |
wakaba |
1.1 |
@@@@@: |
451 |
wakaba |
1.2 |
$r = $self->{<Q::TreeCore:node>}->{<Q::DOMViews:view>}->[0]; |
452 |
|
|
if ($r) { |
453 |
|
|
$r = <ClassM::ManakaiDOMAbstractView.getNodeReference> ($r); |
454 |
|
|
} |
455 |
|
|
|
456 |
wakaba |
1.1 |
##IF:DocumentView |
457 |
|
|
|
458 |
|
|
## DOMViews.dis ends here |
459 |
|
|
|
460 |
|
|
|
461 |
|
|
|
462 |
|
|
|